diff options
author | Karel Kočí <cynerd@email.cz> | 2017-08-02 20:34:26 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2017-08-02 20:34:26 +0200 |
commit | 5de0fe322a27d36e8ed7b1054b37c6edd457f4cd (patch) | |
tree | ffaac17ab3ee7450b58df88384be9a6171580465 /zshrc | |
parent | 512ca2308d4a93fb6c29fb0828f5071e6bbb4301 (diff) | |
parent | 0439d2707714e1b6879818dc76e15256617a335d (diff) | |
download | myconfigs-5de0fe322a27d36e8ed7b1054b37c6edd457f4cd.tar.gz myconfigs-5de0fe322a27d36e8ed7b1054b37c6edd457f4cd.tar.bz2 myconfigs-5de0fe322a27d36e8ed7b1054b37c6edd457f4cd.zip |
Merge branch 'master' into server
Diffstat (limited to 'zshrc')
-rw-r--r-- | zshrc | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -36,9 +36,15 @@ bindkey "^[[3~" delete-char bindkey "^[3;5~" delete-char # PROMPT ####################################################### -if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi +annoyme_check() { + which annoyme >/dev/null 2>&1 && ls ~/.annoyme/*.pid 2>/dev/null >&2 && \ + echo "%{$fg_bold[red]%}!" +} + +[ $UID -eq 0 ] && NCOLOR="red" || NCOLOR="green" PROMPT="%(?..%{$fg_bold[yellow]%}EXIT: %? -)%{$fg_bold[$NCOLOR]%}%n@%m:%{$fg_bold[blue]%}%1~%{$fg_bold[$NCOLOR]%}%(!.#.$)%{$reset_color%} " +)\$(annoyme_check)%{$fg_bold[$NCOLOR]%}%n@%m:%{$fg_bold[blue]%}%1~%{$fg_bold[$NCOLOR]%}%(!.#.$)%{$reset_color%} " +unset NCOLOR if [ -e ~/.local/git-prompt.sh ]; then source ~/.local/git-prompt.sh |