From 80fc1d3f9a5064a6a5a4f882ee83e514130c536a Mon Sep 17 00:00:00 2001 From: Ekaitz Zárraga Date: Sun, 18 Aug 2019 18:44:13 +0200 Subject: Move all the bash shit and clean the mess --- bash/.bash_aliases | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bash/.bash_aliases') 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 -- cgit v1.2.3