comparison zsh/zsh_hooks.zsh @ 151:87498dbd779a

Move away from oh-my-zsh
author zegervdv <zegervdv@me.com>
date Mon, 20 Oct 2014 21:49:21 +0200
parents
children
comparison
equal deleted inserted replaced
150:de8d4246c8fe 151:87498dbd779a
1 function precmd {
2 # vcs_info
3 # Put the string "hostname::/full/directory/path" in the title bar:
4 echo -ne "\e]2;$PWD\a"
5
6 # Put the parentdir/currentdir in the tab
7 echo -ne "\e]1;$PWD:h:t/$PWD:t\a"
8 }
9
10 function set_running_app {
11 printf "\e]1; $PWD:t:$(history $HISTCMD | cut -b7- ) \a"
12 }
13
14 function preexec {
15 set_running_app
16 }
17
18 function postexec {
19 set_running_app
20 }