diff options
author | EuAndreh <eu@euandre.org> | 2018-07-03 12:13:23 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2018-07-03 12:14:00 -0300 |
commit | e5e310ba243d19187466c8612d9ad1e2a0fa5828 (patch) | |
tree | 6410a58655c3be488396fae944268062b3237a52 | |
parent | Remvoe git alias (diff) | |
download | dotfiles-e5e310ba243d19187466c8612d9ad1e2a0fa5828.tar.gz dotfiles-e5e310ba243d19187466c8612d9ad1e2a0fa5828.tar.xz |
Make =watch= work with aliases
-rw-r--r-- | bash/aliases.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bash/aliases.sh b/bash/aliases.sh index 304126b..fac98a7 100644 --- a/bash/aliases.sh +++ b/bash/aliases.sh @@ -9,6 +9,8 @@ alias ll="ls -lhF" alias yt-dl="youtube-dl -o '$YT_TEMPLATE'" alias copy="tr -d '\n' | xclip -sel clip" alias pia-vpn="sudo openvpn --config $DOTFILES/VPN/euandreh.ovpn" +# Source: https://unix.stackexchange.com/questions/25327/watch-command-alias-expansion#25329 +alias watch="watch " 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 fim="play $DOTFILES/bash/Positive.ogg &> /dev/null" |