aboutsummaryrefslogtreecommitdiff
path: root/mkshrc.d/90-prompt.sh
blob: 7449156efe4321ac9e0bebe9069ac57c53becb2b (plain)
1
2
3
4
5
6
7
8
9
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