Mercurial > dotfiles.old
annotate zsh/zsh_hooks.zsh @ 161:53a5e5db21c5
Remove stupid most and go back to less
author | zegervdv <zegervdv@me.com> |
---|---|
date | Fri, 24 Oct 2014 19:26:16 +0200 |
parents | 87498dbd779a |
children |
rev | line source |
---|---|
151 | 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 } |