dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit a95342bdd8b674c1db011f271221cef292df2fc9
parent f5dcb5753936dd47ef52020950a358b8976887b2
Author: hhvn <dev@hhvn.uk>
Date:   Sat,  8 May 2021 13:42:08 +0100

.c/k/prompt: move shell indicator

Diffstat:
M.config/ksh/prompt | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.config/ksh/prompt b/.config/ksh/prompt @@ -1,9 +1,6 @@ #!/bin/ksh __ksh_prompt(){ - echo "$0" | grep -v ksh >/dev/null && { - printf "($(basename $0)) " - } errorcode=$1 # tput setaf 10 >/dev/null [ $errorcode -eq 0 ] && tput setaf 15 || tput setaf 10 @@ -32,6 +29,9 @@ __ksh_prompt(){ } tput setaf 7 printf "%s " $(pwd | sed "s-$HOME-~-") + echo "$0" | grep -v ksh >/dev/null && { + printf "($(basename $0))" + } printf "$ " tput sgr0 }