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!
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to