[zsh]senv alias

This commit is contained in:
Mathieu Maret 2015-12-07 12:02:52 +01:00
parent 98542d4394
commit e1346a0f25

View File

@ -50,3 +50,5 @@ alias -g S='&> /dev/null &'
# Add an "alert" alias for long running commands. Use like so: # Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert # 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 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 senv='source ~/venv/bin/activate'