commit c6a032869be36fcb7099b9009944eac6db1b3a49 parent 636b90b4632bbcd2ab9d03dc1d7776026f287d45 Author: Luxferre <lux@ferre> Date: Mon, 19 Feb 2024 17:33:05 +0200 PS1 fixes etc Diffstat:
M | .aliases | | | 1 | + |
M | .kshrc | | | 6 | ++++++ |
M | .profile | | | 6 | +++++- |
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.aliases b/.aliases @@ -9,6 +9,7 @@ alias dt='ENV="$HOME/.kshrc" dtach -A /tmp/dsession $SHELL' # use on Alpine/OpenBSD alias sudo=doas +alias rootsh='doas $SHELL' # use elsewhere # alias doas=sudo diff --git a/.kshrc b/.kshrc @@ -1,4 +1,10 @@ set -o emacs +set -o ignoreeof HISTFILE="$HOME/.ksh_history" HISTSIZE=5000 +case $LOGNAME in + root) PS1='[\u@\h \W] # ' ;; + *) PS1='[\u@\h \W]\$ ' ;; +esac +export PS1 . "$HOME/.aliases" diff --git a/.profile b/.profile @@ -3,5 +3,9 @@ export VISUAL=vim export PAGER=most export SDL_VIDEODRIVER=kmsdrm export PATH HOME TERM -export PS1="[\u@\h \W]\$ " +case $LOGNAME in + root) PS1='[\u@\h \W] # ' ;; + *) PS1='[\u@\h \W]\$ ' ;; +esac +export PS1 export ENV=$HOME/.kshrc