diff options
-rw-r--r-- | .bash_profile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.bash_profile b/.bash_profile index 8cbddc7..578e0c7 100644 --- a/.bash_profile +++ b/.bash_profile @@ -11,9 +11,9 @@ export XAUTHORITY=$HOME/.config/X11/Xauthority; -logfile "$HOME/.cache/xorg.log" vt1 -keeptty -auth "$XAUTHORITY"; # set prompt -PS1_USER='$(E=$? && [ "$E" != 0 ] && echo "$E ")\[\e[0;34m\]\W\[\e[0m\] \[\e[0;34m\]\$\[\e[0m\] ' -PS1_ROOT='$(E=$? && [ "$E" != 0 ] && echo "$E ")\[\e[0;31m\]\W\[\e[0m\] \[\e[0;31m\]\$\[\e[0m\] ' -PS1_SSHD='$(E=$? && [ "$E" != 0 ] && echo "$E ")\[\e[0;32m\]\W\[\e[0m\] \[\e[0;32m\]\$\[\e[0m\] ' +PS1_USER='$(E=$? && [ "$E" = 0 ] || echo "$E ")\[\e[0;34m\]\W\[\e[0m\] \[\e[0;34m\]\$\[\e[0m\] ' +PS1_ROOT='$(E=$? && [ "$E" = 0 ] || echo "$E ")\[\e[0;31m\]\W\[\e[0m\] \[\e[0;31m\]\$\[\e[0m\] ' +PS1_SSHD='$(E=$? && [ "$E" = 0 ] || echo "$E ")\[\e[0;32m\]\W\[\e[0m\] \[\e[0;32m\]\$\[\e[0m\] ' # export prompt [ "$EUID" != 0 ] && export PS1="$PS1_USER"; |