dotfiles/.ksh/prompt-ksh.ksh

11 lines
425 B
Bash

########################################################################
# PROMPT
########################################################################
C1="\[$(tput setaf 241)\]" # gray
#C2="\[$(tput setaf 209)\]" # orange
C2="\[$(tput setaf 37)\]" # green
C0="\[$(tput op)\]" # reset
x=$(print \\001) # hack from ksh(1)
PS1="$x\${C1}[\${C2}\h\${C1}](\${C2}\${?}\${C1})(\${C2}\W\${C1})\\$ \${C0}$x"