commit cafa51bd79ab1f7237726bce4e9d2420dd55e58b parent e5abfd93686bd02665ca7f449d95743fe797e2bd Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Thu, 3 Oct 2019 13:42:09 +0200 Fix PS1 Diffstat:
M | .profile | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.profile b/.profile @@ -6,5 +6,5 @@ export PATH HOME TERM ENV [ -f $HOME/.config/sh/profile ] && . $HOME/.config/sh/profile [ -f $HOME/.config/sh/commands ] && . $HOME/.config/sh/commands -export PS1="[32m\u@\h [34m\w [00m\$ " +export PS1="[32m${USER:=$(id -un)}@${HOSTNAME:=$(hostname)} [34m\$PWD[00m $( if (( USER_ID )); then print \$; else print \#; fi) " export ENV=$HOME/.kshrc