added a couple new alias'

This commit is contained in:
Russell R. 2020-07-27 19:30:23 +00:00
parent 4e5fc64608
commit c0bd168725
1 changed files with 3 additions and 1 deletions

View File

@ -92,8 +92,10 @@ alias ll='ls -alF'
alias la='ls -A' alias la='ls -A'
alias l='ls -CF' alias l='ls -CF'
alias gconfig='/usr/bin/git --git-dir=$HOME/configs/ --work-tree=$HOME' alias gconfig='/usr/bin/git --git-dir=$HOME/configs/ --work-tree=$HOME'
alias vi=nvim
alwas vim=nvim
# Add an "alert" alias for long running commands. Use like so: # Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert # sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'