From 14c3a065d5db28fc186f6a3601289dc717571dc9 Mon Sep 17 00:00:00 2001 From: tdro Date: Sun, 17 May 2020 04:40:40 -0400 Subject: .bash_profile: "!" not recognized during sh shell load (nixos) Strange --- .bash_profile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.bash_profile') 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"; -- cgit v1.2.3