diff options
author | Karel Kočí <cynerd@email.cz> | 2016-08-18 00:08:16 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2016-08-18 00:08:16 +0200 |
commit | f9622aba4db82657b419e8d0fb280c33ad355622 (patch) | |
tree | b343dc44e399223d56a92de886f174d295c0e693 /bashrc | |
parent | b8e124cf9f04774250a68ec4585c72b1ebd22ddd (diff) | |
download | myconfigs-f9622aba4db82657b419e8d0fb280c33ad355622.tar.gz myconfigs-f9622aba4db82657b419e8d0fb280c33ad355622.tar.bz2 myconfigs-f9622aba4db82657b419e8d0fb280c33ad355622.zip |
Add annoyme explanation mark to bash prompt
Diffstat (limited to 'bashrc')
-rw-r--r-- | bashrc | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -42,7 +42,10 @@ PS1='$( if [ `id -u` -eq "0" ]; then echo -n "\[\e[1;31m\]\u@\h:\[\e[1;34m\]\W\[\e[1;31m\]\$\[\e[0m\] " else - echo -n "\[\e[1;32m\]\u@\h:\[\e[1;34m\]\W\[\e[1;32m\]\$\[\e[0m\] " + if ls .annoyme/*.pid 2>/dev/null >/dev/null; then + ANNOYME_PS="\[\e[1;31m\]!\[\e[0m\]" + fi + echo -n "$ANNOYME_PS\[\e[1;32m\]\u@\h:\[\e[1;34m\]\W\[\e[1;32m\]\$\[\e[0m\] " fi)' PROMPT_COMMAND=' |