commit 91de83d67f4f457f43cbb3683d73b94282948643 parent 8cb8bb4f4cf5fed20c328682935a47a9f7ab7c3e Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Tue, 22 Sep 2020 08:00:01 +0200 .kshrc: only use \u,\h,\w on OpenBSD ksh Diffstat:
M | .kshrc | | | 7 | +++---- |
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/.kshrc b/.kshrc @@ -5,10 +5,9 @@ HISTSIZE=50000 set -o vi -case "$0" in --ksh) +PS1='${USER}@${HOSTNAME:=$(hostname)}:${PWD} ${?#0}$ ' +[ "$(uname)" = "OpenBSD" ] && case "$0" in +*ksh) PS1='\u@\h:\w ${?#0}$ ';; -*sh) - PS1='${USER}@${HOSTNAME:=$(hostname)}:${PWD} ${?#0}$ ';; esac export PS1