modified prompt title, so its less confusing.

This commit is contained in:
staticsafe 2012-06-18 15:38:29 -04:00
parent 65c4af271d
commit 611a65d1c8
1 changed files with 5 additions and 8 deletions

View File

@ -1,12 +1,9 @@
#hooks
function precmd {
# vcs_info
# Put the string "hostname::/full/directory/path" in the title bar:
echo -ne "\e]2;$PWD\a"
# Put the parentdir/currentdir in the tab
echo -ne "\e]1;$PWD:h:t/$PWD:t\a"
}
case $TERM in
xterm*)
precmd () {print -Pn "\e]0;%n@%m: %~\a"}
;;
esac
function set_running_app {
printf "\e]1; $PWD:t:$(history $HISTCMD | cut -b7- ) \a"