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 5002732f08b1a0f1049895f2e07fa39de3bffa73
parent 0a61e0ab200429b487a6c2babf46dbc0f12ff18d
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu, 14 Nov 2019 12:29:02 +0100

Fix PS1 on mksh

Diffstat:
M.kshrc | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/.kshrc b/.kshrc @@ -3,4 +3,8 @@ HISTSIZE=50000 set -o vi -export PS1="\h:\w \${?#0}\\$ " +PS1="\h:\w \${?#0}\\$ " +if [ "$0" = "-mksh" ]; then + PS1="${HOSTNAME:=$(hostname)}:\${PWD/\/home\/$USER/\~} \\$ " +fi +export PS1