summaryrefslogtreecommitdiff
path: root/bash/.bash_aliases
diff options
context:
space:
mode:
authorEkaitz Zárraga <ekaitz.zarraga@protonmail.com>2019-08-18 18:44:13 +0200
committerEkaitz Zárraga <ekaitz.zarraga@protonmail.com>2019-08-18 18:44:13 +0200
commit80fc1d3f9a5064a6a5a4f882ee83e514130c536a (patch)
treee76274ec822e1a5c121290a6445cad4b31fa7f9d /bash/.bash_aliases
parent15f83d7a1d10f7101d79fec0c86872afdb76ffb9 (diff)
Move all the bash shit and clean the mess
Diffstat (limited to 'bash/.bash_aliases')
-rw-r--r--bash/.bash_aliases5
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