diff options
-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" |