Of course it changes both if you use -g. Set it without -g in the inner
one.


On Thu, Jun 14, 2012 at 05:12:09PM -0600, Timothy Smith wrote:
> I'm used to using nested sessions to manage different contexts. For
> example, in the outer session I open a new window, start a nested
> session and ssh into a bunch of different machines for a client I'm
> working on. I can bounce between client machines in my nested session,
> and bounce around to my other tasks in my main outer session.
> 
> This works well with GNU screen, as I can set different escape
> prefixes in the outer and inner sessions. Say my .screenrc has "escape
> ^Ll". When I open the inner session, I can type "^Ll:escape ^Oo". Now
> ^Oc creates a new window in the inner session, and ^Lc creates a new
> window in the outer session.
> 
> I can't find a way to do this with tmux. I start a nested session with
> "TMUX= tmux". I then type "^Ll:set-option -g prefix C-o", and this
> changes the prefix for both the outer and inner sessions.
> 
> In case it matters, my .tmux.conf is:
> 
> set -g default-terminal screen-256color-bce
> set -g history-limit 1000
> set -sg escape-time 0
> 
> bind-key C-n next-window
> bind-key C-p previous-window
> 
> unbind-key C-b
> set-option -g prefix C-l
> bind-key l send-prefix
> bind-key C-l last-window
> 
> 
> Does tmux provide a better way to have these multiple contexts, like
> the nested sessions provide in GNU screen? Or is there a way to have
> different prefixes for the inner and outer sessions?
> 
> Thank you,
> 
> Tim
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> tmux-users mailing list
> tmux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tmux-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to