Skip to content

Instantly share code, notes, and snippets.

@jewel12
Created December 17, 2012 08:52
Show Gist options
  • Save jewel12/4316785 to your computer and use it in GitHub Desktop.
Save jewel12/4316785 to your computer and use it in GitHub Desktop.
tmuxでアクティブでないウィンドウの名前をそのウィンドウ内でのカレントディレクトリにする
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment