aboutsummaryrefslogtreecommitdiff
path: root/.bash_profile
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2020-05-17 04:40:40 -0400
committertdro <tdro@users.noreply.github.com>2020-05-17 04:40:40 -0400
commit14c3a065d5db28fc186f6a3601289dc717571dc9 (patch)
tree8e91c3b1b16b04399c019b2e7ed19786ee741e78 /.bash_profile
parentbde6736763e93742628b5d7322375c3f2cd11a24 (diff)
downloaddotfiles-14c3a065d5db28fc186f6a3601289dc717571dc9.tar.gz
dotfiles-14c3a065d5db28fc186f6a3601289dc717571dc9.tar.bz2
dotfiles-14c3a065d5db28fc186f6a3601289dc717571dc9.zip
.bash_profile: "!" not recognized during sh shell load (nixos)
Strange
Diffstat (limited to '.bash_profile')
-rw-r--r--.bash_profile6
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";