Created
November 22, 2012 06:15
-
-
Save dmytro/4129656 to your computer and use it in GitHub Desktop.
Open Tmux panes in current directory
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
tmux_pwd () { | |
[ -z "${TMUX}" ] && return | |
TARGET=\-t$(tmux display-message -p "#S") | |
tmux set-window-option ${TARGET} default-path $PWD > /dev/null | |
(( sleep 300; | |
tmux set-window-option ${TARGET} default-path ~/Development > /dev/null; ) & ) > /dev/null 2>&1 | |
} | |
alias pwd="\pwd; tmux_pwd" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment