commit 42903d2f4f4c2ac9c2d8c018cb899959ba338f7a parent 934f65a6e021956a8456441d3c3512c19a6f1da8 Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Wed, 15 Jan 2020 08:33:52 +0100 Show username in PS1 Diffstat:
M | .kshrc | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.kshrc b/.kshrc @@ -5,8 +5,8 @@ HISTSIZE=50000 set -o vi -PS1="\h:\w \${?#0}\\$ " +PS1="\u@\h:\w \${?#0}\\$ " if [ "$(uname)" = "Linux" ]; then - PS1="${HOSTNAME:=$(hostname)}:\${PWD/\/home\/$USER/\~} \\$ " + PS1="$USER@${HOSTNAME:=$(hostname)}:\${PWD/\/home\/$USER/\~} \\$ " fi export PS1