dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit f1d872169e7f54370dd6269cf316ccb69d4eb2c5
parent 9bb68e3c7707fad93f224b25006c7d13e83fac97
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu,  3 Oct 2019 14:01:19 +0200

PS1: Evaluate user every time

Diffstat:
M.profile | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.profile b/.profile @@ -8,5 +8,5 @@ export PATH HOME TERM ENV HOSTNAME=${HOSTNAME:-$(uname -n)} HOST=${HOSTNAME%%.*} -export PS1="${USER:=$(id -un)}@${HOST} \$PWD $( if (( USER_ID )); then print \$; else print \#; fi) " +export PS1="\$(id -un)@${HOST} \$PWD \$( if [ \$(id -u) -gt 0 ]; then print \$; else print \#; fi) " export ENV=$HOME/.kshrc