A zsh plugin to sync dirs in all open panes in a tmux window.
- clone it
- source it in your
1-9can be used to access directory stack.
.to sync cwd in all panes
Set the value of these variables to the key bindings you want to use for splitting tmux panes, new panes will open at the same directory:
export TMUX_SYNC_DIR_SPLIT_VERT="\e;sv" export TMUX_SYNC_DIR_SPLIT_HORIZ="\e;sh"
Will sync working dir in sh, bash, zsh, [n]vim and python panes. Provided
os module in your python startup files. If you don't,
here's the step by step procedure:
- goto your computer
- take out a shotgun
- point it at your computer
- pull the trigger
- reverse the direction of shotgun and repeat step 4
Just a hack. Use it at your own risk(works fine for me).
It just sends a
esc and change dir command to panes
in current window whose command name matches the ones it knows.
Tmux can't provide enough info about programs running
in panes for it to decide if a change dir command should be
sent.(can it?) Tmux just emulates terminals. The real problem
is that a terminal is just a grid of boxes which display chars.
Terminals don't know anything about the programs running in them.
pymux, configurability isn't the root of all evil.
Do something about the lag, 0.35 sec for tmux_goto_dir and 0.2 sec for tmux_split. These scripts start a python interpreter and import some modules every time they're called. A server might help.Dispatching python scripts to the background works, but
cds shouldn't register on the cpu monitor (Try pymux)
Not very elegent too. Split commands are the only ones which do not tmux prefix. (Try pymux)