Re: Set up session and rename window

2013-06-05 Thread Marco
On 2013–06–04 Adrian Luff wrote: > To name the session you can do the following… > > tmux new-session -s foo -d > > tmux new-window -t foo -n "Editor" > > tmux send-keys -t foo vim C-m > > tmux new-window -t foo -n "Top" monitor htop > > Of course this leaves a default shell as the first window.

Re: Set up session and rename window

2013-06-04 Thread Adrian Luff
Marco, I do something similar in setting up new tmux sessions. There may be a more elegant way but I've not seen it. To name the session you can do the following… > tmux new-session -s foo -d > tmux new-window -t foo -n "Editor" > tmux send-keys -t foo vim C-m > tmux new-window -t foo -n "Top" m

Set up session and rename window

2013-05-25 Thread Marco
Hi, I use shell functions to set up tmux sessions or attach to already existing ones. What I basically do is the following: tmux new-session -s foo -d tmux send-keys -t foo vim C-m tmux new-window -t foo -n monitor htop tmux attach -t foo I use send-keys instead of new-window bec