diff options
Diffstat (limited to 'dot_local/share/toasty/plugins/xterm-title')
| -rw-r--r-- | dot_local/share/toasty/plugins/xterm-title | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/dot_local/share/toasty/plugins/xterm-title b/dot_local/share/toasty/plugins/xterm-title new file mode 100644 index 0000000..a57ea03 --- /dev/null +++ b/dot_local/share/toasty/plugins/xterm-title @@ -0,0 +1,10 @@ +function xterm-title { + print -Pn '\e]0;%n@%m $(history $HISTCMD | cut -b8-)\a' +} + +autoload -Uz add-zsh-hook +add-zsh-hook precmd xterm-title +add-zsh-hook preexec xterm-title +add-zsh-hook chpwd xterm-title + +# vim: ft=zsh |
