tmux

autoload -Uz add-zsh-hook

if [ ${TMUX} ]; then

show-current-dir-as-window-name() {

tmux set-window-option window-status-format " #I ${PWD:t} " > /dev/null

}

show-current-dir-as-window-name

add-zsh-hook chpwd show-current-dir-as-window-name

fi