Browse Source

Ajoute la fonction alert pour desktop

master
Shikiryu 5 years ago
parent
commit
9aa6598096
  1. 4
      .bashrc

4
.bashrc

@ -14,6 +14,10 @@ if ! shopt -oq posix; then
fi
fi
# 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$//'\'')"'
export VISUAL=vim
export EDITOR="$VISUAL"

Loading…
Cancel
Save