diff options
Diffstat (limited to '')
-rw-r--r-- | .zsh/zshrc | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -194,7 +194,19 @@ _set_title () { echo -ne "${pre}${USER}@${HOST}:${PWD/$HOME/~}${post}" } -chpwd_functions=( ${chpwd_functions} _set_title ) +_set_cwd () { + local update="\0033]777;cwd-spawn;path;$PWD\0007" + + case $TERM in + screen*) + # pass through to parent terminal emulator + update="\0033P$update\0033\\";; + esac + + echo -ne "$update" +} + +chpwd_functions=( ${chpwd_functions} _set_title _set_cwd ) case $TERM in xterm*) @@ -205,6 +217,7 @@ esac # exec once for initialization _set_title +_set_cwd # }}} # Key bindings {{{ |