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