Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case $TERM in
- xterm*|*rxvt*)
- TITLEBAR='\[\e]0; Terminal | \w\007\]'
- ;;
- *)
- TITLEBAR=""
- ;;
- esac
- # Put it all together
- PS1="${TITLEBAR}${STARTCOLOUR}${PS1}${ENDCOLOR}"
- trap 'echo -ne "\033]0;$BASH_COMMAND\007"' DEBUG
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement