dotfiles

My personal dotfiles

commit fe94cf7640ae4d27a96125a495be6f4517813aa4
parent c8a8d8a7917d169bee7e590ed7c10852f2231c7e
Author: Pablo <pablo-escobar@riseup.net>
Date:   Sat,  3 Apr 2021 21:29:48 +0000

Extracted the aliases to a different file

Diffstat:
M.bashrc | 3+++
M.config/fish/config.fish | 16+++++++++++-----
A.local/bin/aliases.sh | 29+++++++++++++++++++++++++++++
M.local/bin/exports.sh | 20++++----------------
M.local/share/configs.list | 1+
5 files changed, 48 insertions(+), 21 deletions(-)
diff --git a/.bashrc b/.bashrc
@@ -59,6 +59,9 @@ fi
 # Sources environment variables
 source ~/.local/bin/exports.sh
 
+# Sources aliases
+source ~/.local/bin/aliases.sh
+
 # Set the prompt
 if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
   PS1='[${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w\[\033[00m\]]\$ '
diff --git a/.config/fish/config.fish b/.config/fish/config.fish
@@ -22,6 +22,9 @@ abbr sc      'sc-im'
 abbr weather 'curl https://wttr.in/'
 abbr mutt    'neomutt'
 
+# Aliases
+source "$HOME/.local/bin/aliases.sh"
+
 function fish_greeting
     set_color yellow
     fortune | cowsay -f none
@@ -36,7 +39,8 @@ function fish_prompt
 
     # Show fancy prompt if the screen is big enought
     if test (math (string length "$dir") + 4) -lt (math (tput cols) \* 0.50)
-      set_color --bold white
+      set_color normal
+      set_color white
       printf "["
 
       # Print the username
@@ -51,16 +55,18 @@ function fish_prompt
       set_color --bold cyan
       __fish_git_prompt
 
-      set_color --bold white
+      set_color normal
+      set_color white
       printf ']' 
     else
       set_color --bold blue
       printf '%s ' "$dir"
-      set_color --bold white
+      set_color normal
+      set_color white
     end
 
-    if [ $status -ne 0 ]
-        set_color --bold red
+    if test $status -ne 0
+        set_color red
     end
 
     if test "$USER" = root
diff --git a/.local/bin/aliases.sh b/.local/bin/aliases.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+#        _ _                           _     
+#   __ _| (_) __ _ ___  ___  ___   ___| |__  
+#  / _` | | |/ _` / __|/ _ \/ __| / __| '_ \ 
+# | (_| | | | (_| \__ \  __/\__ \_\__ \ | | |
+#  \__,_|_|_|\__,_|___/\___||___(_)___/_| |_|
+#
+# Pablo (C) 2021
+# 
+# File that contains all aliases variables I use. This can be sourced from,
+# bash, fish, sh, zsh, etc.
+
+alias canto='canto-curses'
+alias less='less -Rf'
+alias wget='wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"'
+alias gdb='gdb -nh -x "$XDG_CONFIG_HOME/gdb/init"'
+alias weechat='weechat -d "$XDG_CONFIG_HOME/weechat"'
+alias lynx='lynx -cfg="$XDG_CONFIG_HOME/lynx/lynx.cfg"'
+# Hide my timezone when commiting
+alias git='env TZ=-0000 git' 
+alias abook='abook --config "$XDG_CONFIG_HOME"/abook/abookrc --datafile "$XDG_DATA_HOME"/abook/addressbook'
+# Make neomutt stealthy
+alias neomutt='env TZ=-0000 torify neomutt' 
+alias impressive='impressive --transition None -C ~/Pictures/Cursors/Laser\ Beam\ Normal.cur'
+alias ls='ls --color=auto'
+alias grep='grep --color=auto'
+alias fgrep='fgrep --color=auto'
+alias egrep='egrep --color=auto'
+
diff --git a/.local/bin/exports.sh b/.local/bin/exports.sh
@@ -7,6 +7,8 @@
 #  \___/_/\_\ .__/ \___/|_|   \__|___(_)___/_| |_|
 #           | |                                   
 #           |_|                                   
+#
+# Pablo (C) 2021
 # 
 # File that contains all environmet variables I use. This can be sourced from,
 # bash, fish, sh, zsh, etc.
@@ -38,6 +40,8 @@ export PATH="$PATH:$XDG_DATA_HOME/mitra"
 export PATH="$PATH:$XDG_DATA_HOME/tmux" 
 export PATH="$PATH:$XDG_DATA_HOME/julia-1.5.3/bin" 
 export PATH="$PATH:$XDG_DATA_HOME/fzf/bin" 
+export PATH="$PATH:$HOME/.cabal/bin" 
+export PATH="$PATH:$HOME/.local/share/idris2/bin" 
 
 # Configure the MANPATH variable
 export MANPATH="/usr/share/man"
@@ -45,22 +49,6 @@ export MANPATH="$MANPATH:/usr/local/man"
 export MANPATH="$MANPATH:$XDG_DATA_HOME/man"
 export MANPATH="$MANPATH:$XDG_DATA_HOME/fzf/man"
 
-# Aliases
-alias canto='canto-curses'
-alias less='less -Rf'
-alias wget='wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"'
-alias gdb='gdb -nh -x "$XDG_CONFIG_HOME/gdb/init"'
-alias weechat='weechat -d "$XDG_CONFIG_HOME/weechat"'
-alias lynx='lynx -cfg="$XDG_CONFIG_HOME/lynx/lynx.cfg"'
-alias git='env TZ=-0000 git' # Hide my timezone when commiting
-alias abook='abook --config "$XDG_CONFIG_HOME"/abook/abookrc --datafile "$XDG_DATA_HOME"/abook/addressbook'
-alias neomutt='env TZ=-0000 torify neomutt' # Make neomutt stealthy
-alias impressive='impressive --transition None -C ~/Pictures/Cursors/Laser\ Beam\ Normal.cur'
-alias ls='ls --color=auto'
-alias grep='grep --color=auto'
-alias fgrep='fgrep --color=auto'
-alias egrep='egrep --color=auto'
-
 # =========================== Programming Languages ==========================
 
 # C
diff --git a/.local/share/configs.list b/.local/share/configs.list
@@ -20,3 +20,4 @@
 /home/pablo/.config/aspell
 /home/pablo/.profile
 /home/pablo/.bashrc
+/home/pablo/.local/bin/aliases.sh