aboutsummaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2016-08-18 00:08:16 +0200
committerKarel Kočí <cynerd@email.cz>2016-08-18 00:08:16 +0200
commitf9622aba4db82657b419e8d0fb280c33ad355622 (patch)
treeb343dc44e399223d56a92de886f174d295c0e693 /bashrc
parentb8e124cf9f04774250a68ec4585c72b1ebd22ddd (diff)
downloadmyconfigs-f9622aba4db82657b419e8d0fb280c33ad355622.tar.gz
myconfigs-f9622aba4db82657b419e8d0fb280c33ad355622.tar.bz2
myconfigs-f9622aba4db82657b419e8d0fb280c33ad355622.zip
Add annoyme explanation mark to bash prompt
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc5
1 files changed, 4 insertions, 1 deletions
diff --git a/bashrc b/bashrc
index 33801c6..bce7d89 100644
--- a/bashrc
+++ b/bashrc
@@ -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='