İsmail Dönmez
2015-01-18 12:19:52 UTC
Hi,
I am trying to find a shortcut to create a window at the end of the current
windows. Currently new-window -a just appends the new window after the
current active window which is not what I want. I came up with something
like
run-shell "x=$(tmux list-windows | tail -1 | cut -f1 -d":") && tmux
new-window -a -t $x"
which does what I want BUT its ugly, slow and depends on $PATH (since tmux
uses /bin/sh to run the command its not setting up the PATH as I'd like to)
to correctly work. I wonder if there is an easier way to do this.
Thanks!
I am trying to find a shortcut to create a window at the end of the current
windows. Currently new-window -a just appends the new window after the
current active window which is not what I want. I came up with something
like
run-shell "x=$(tmux list-windows | tail -1 | cut -f1 -d":") && tmux
new-window -a -t $x"
which does what I want BUT its ugly, slow and depends on $PATH (since tmux
uses /bin/sh to run the command its not setting up the PATH as I'd like to)
to correctly work. I wonder if there is an easier way to do this.
Thanks!