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 because I don't want the
window to be closed after I quit vim, instead it want to be dropped
into a shell. I don't know if the send-keys approach is the right
thing to do, but it seems to work. Is there a better way to set up
this session?

How do I set up the window name for the vim window?

Marco

Attachment: signature.asc
Description: Digital signature

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to