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 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="\u@\h \w \$ " +export PS1="${USER:=$(id -un)}@${HOSTNAME:=$(hostname)} \$PWD $( if (( USER_ID )); then print \$; else print \#; fi) " export ENV=$HOME/.kshrc