dotfiles

configuration files
git clone https://pi.duncano.de/git/dotfiles.git
Log | Files | Refs | README

commit 9e31f6c5af39c3df67761d7b924743a5420752c3
parent 218a247c5987c03c0bc99cd85d4d66774d3da74e
Author: Duncaen <mail@duncano.de>
Date:   Fri,  7 Oct 2016 01:38:42 +0200

mksh: use a simple prompt

Diffstat:
mkshrc.d/90-prompt.sh | 10+---------
1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/mkshrc.d/90-prompt.sh b/mkshrc.d/90-prompt.sh @@ -1,9 +1 @@ -if [ -x "$(command -v slcp)" ]; then - PS1='$(slcp $COLUMNS $?)' -fi - -case "$TERM" in - dvtm*|xterm*|rxvt*) - PS1+='$(echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007")' - ;; -esac +PS1='$(d=${PWD/$HOME/\~};print ${d##*/})$(((r=$?))&&print "?\e[0;31;40m$r\e[0m")$(((USER_ID))&&print \$||print \#) '