Skip to content

Instantly share code, notes, and snippets.

@dmytro
Created November 22, 2012 06:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmytro/4129656 to your computer and use it in GitHub Desktop.
Save dmytro/4129656 to your computer and use it in GitHub Desktop.
Open Tmux panes in current directory
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