diff options
Diffstat (limited to 'bash/.bash_aliases')
-rw-r--r-- | bash/.bash_aliases | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bash/.bash_aliases b/bash/.bash_aliases index ea32b39..5a64c56 100644 --- a/bash/.bash_aliases +++ b/bash/.bash_aliases @@ -21,6 +21,11 @@ alias ll='ls -alF' alias la='ls -A' alias l='ls -CF' +# Add an "alert" alias for long running commands. Use like so: +# 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 for Node.js projects alias ntree='tree -I node_modules' # alias for Clojure projects |