Skip to content

Instantly share code, notes, and snippets.

@TitouanT
Forked from william8th/.tmux.conf
Last active June 18, 2020 16:36
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 TitouanT/1539f6ef37d052141abeb6a8e5349232 to your computer and use it in GitHub Desktop.
Save TitouanT/1539f6ef37d052141abeb6a8e5349232 to your computer and use it in GitHub Desktop.
Tmux open new pane in same directory
# \ and - to split to the session working directory (SWD)
bind \\ split-window -h
bind - split-window -v
# hold shift to split to current path
bind | split-window -h -c "#{pane_current_path}"
bind _ split-window -v -c "#{pane_current_path}"
# change SWD to current pane path
bind W attach-session -t . -c "#{pane_current_path}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment