Closed kamelzcs closed 10 years ago
If you run these commands in tmux
, what does it do:
$ tmux new-window -n 'TC' -c '/home/kamel/Code/study'
# And then in the newly created window:
$ tmux split-window -c '/home/kamel/Code/study'
It’s supposed to open a new window with two horizontal splits, each of them opened at /home/kamel/Code/study
.
Finally, I found the problem, it is due to the conflict with oh-my-zsh
plugin tmux
After I disabled the plugin, it will not jump to /home/kamel/.oh-my-zsh/plugin/tmux
directory, but the directory will not change, it will remain as it was.
# start directory is '/home/kamel/dotConf'
$ tmux
$ tmux new-window -n 'TC' -c '/home/kamel/Code/study'
$ tmux split-window -c '/home/kamel/Code/study'
Alright, I’m going to close the issue then as teamocil
just execute tmux
commands. Thanks!
After using
teamocil tc
, the working directory changed to/home/kamel/.oh-my-zsh/plugin/tmux
, not the intended/home/kamel/Code/study
.tmux.config
filetmux --debug tc
:tmux rename-session 'teamocil-session-126108' tmux new-window -n 'TC' -c '/home/kamel/Code/study' tmux send-keys -t 1 'vim' tmux send-keys -t 1 'Enter' tmux split-window -c '/home/kamel/Code/study' tmux send-keys -t 2 'whoami' tmux send-keys -t 2 'Enter' tmux split-window -c '/home/kamel/Code/study' tmux send-keys -t 3 'ls' tmux send-keys -t 3 'Enter' tmux select-layout 'ba8a,211x49,0,0{165x49,0,0,19,45x49,166,0[45x14,166,0,21,45x34,166,15,22]}' tmux select-pane -t 1