aboutsummaryrefslogtreecommitdiff
path: root/mksh.d/90-prompt.sh
blob: d5a693d824f06900469b9d254fbafaf3ce0b92ff (plain)
1
2
3
4
5
6
7
8
9
if [ -x /usr/bin/slcp ]; then
  PS1='$(slcp $COLUMNS $?)'
fi

case "$TERM" in
  dvtm*|xterm*|rxvt*)
    PS1+='$(echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007")'
    ;;
esac