Discussion:
Putting the new window at the end
İsmail Dönmez
2015-01-18 12:19:52 UTC
Permalink
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!
Thomas Adam
2015-01-18 12:23:05 UTC
Permalink
Post by İsmail Dönmez
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
How is this *not* just 'tmux neww' -- that is, without the '-a' option?

-- Thomas Adam
İsmail Dönmez
2015-01-18 12:29:26 UTC
Permalink
Hi,
Post by İsmail Dönmez
Post by İsmail Dönmez
Hi,
I am trying to find a shortcut to create a window at the end of the
current
Post by İsmail Dönmez
windows. Currently new-window -a just appends the new window after the
How is this *not* just 'tmux neww' -- that is, without the '-a' option?
Thats just it! I am just being stupid :-)

Thanks a lot!

Loading...