Re: tmux as login shell without chsh

2010-04-27 Thread Micah Cowan
clemens fischer wrote: > On Sun-2010/02/28-21:28 Nicholas Marriott wrote: > >> You probably want to "exec tmux new-session", or use "tmux new-session >> -d" instead. > > I always use > > exec /usr/local/bin/tmux ${TMUX_OPTIONS} attach-session > > without checking for existing sessions on th

Re: tmux as login shell without chsh

2010-04-27 Thread clemens fischer
On Sun-2010/02/28-21:28 Nicholas Marriott wrote: > You probably want to "exec tmux new-session", or use "tmux new-session > -d" instead. I always use exec /usr/local/bin/tmux ${TMUX_OPTIONS} attach-session without checking for existing sessions on the local machine. If there is one, it att

Re: tmux as login shell without chsh

2010-02-28 Thread Nicholas Marriott
You probably want to "exec tmux new-session", or use "tmux new-session -d" instead. Otherwise if it works it must be fine, shell script isn't meant to be elegant... :-) On Fri, Feb 26, 2010 at 09:57:39PM +1100, Trent W. Buck wrote: > Because screen doesn't implement -c like a normal shell, I can

tmux as login shell without chsh

2010-02-26 Thread Trent W. Buck
Because screen doesn't implement -c like a normal shell, I can't use it as my login shell without breaking scp(1) and suchlike. Thus for some time I've had this in my .bash_profile: ## The naive "chsh -s /usr/bin/screen" breaks scp (and other things). ## Have sh start screen automatically