Created
December 17, 2012 08:52
-
-
Save jewel12/4316785 to your computer and use it in GitHub Desktop.
tmuxでアクティブでないウィンドウの名前をそのウィンドウ内でのカレントディレクトリにする
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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