kmfkoffer.blogg.se

Tmux new window
Tmux new window




tmux new window

But if I start more than about 4 windows, I frequently see the following bash errors in one of the windows after startup: bash: [: =: unary operator expected Tmux new-window -t xyz:6 -n var6 'cd /var/log bash -i' Tmux new-window -t xyz:5 -n var5 'cd /var/log bash -i'

tmux new window

Tmux new-window -t xyz:4 -n var4 'cd /var/log bash -i' Tmux new-window -t xyz:3 -n var3 'cd /var/log bash -i' Tmux new-window -t xyz:2 -n var2 'cd /var/log bash -i' Tmux new-window -t xyz:1 -n var 'cd /var/log bash -i' So my next idea was to start a new shell like this: tmux new-session -s xyz -n etc -d 'cd /etc bash -i' Tmux new-window -t xyz:1 -n var 'cd /var/log'īut I soon found out that this will not work as I expected - the window will be closed after the shell command completes. I started with a script I found and tried this first: tmux new-session -s xyz -n etc -d 'cd /etc' I want to use a script to open a tmux session with 6 windows, each in a different directory.






Tmux new window