You need

set -g prefix ^a
bind ^a send-prefix
set -g prefix2 ^b
bind ^b send-prefix -2


On Wed, Aug 08, 2012 at 01:41:31PM +0200, LEVAI Daniel wrote:
> 
> Hi!
> 
> 
> I'm using tmux's default prefix key ^b, but I needed an alternate prefix
> key too, so I've used 'set-option -g prefix2 C-a'.
> 
> I'm used to the fact that I can use CTRL+b+b to enter ^b to my terminal
> any time I need (eg.: remote tmux). But, it seems to me that this only
> works for ^b. With any other key I try to setup as prefix or prefix2
> key, this is not working.
> So I can not enter ^a to my terminal with CTRL+a+a when I set prefix or
> prefix2 to 'C-a', but I can input ^b with CTRL+b+b if I set my prefix or
> prefix2 to 'C-b'. Btw, the 'a' key is not determinative, this doesn't
> work with any other key except 'b'.
> 
> I've tried this on OpenBSD 5.1-stable and on Linux with r2849 svn co.
> 
> Is this fixable?
> 
> 
> Thanks,
> Daniel
> 
> -- 
> L?VAI D?niel
> PGP key ID = 0x83B63A8F
> Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F
> 
> ------------------------------------------------------------------------------
> 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