Shell and tmux

Status
Not open for further replies.

DaPlumber

Patron
Joined
May 21, 2014
Messages
246
As a CLI kind of guy still settling in to a FreeNAS box, I really miss "screen" instead of tmux. It's an EMACS vs vi thing. ;)

That said is there any way of having the GUI "Shell" link start up "tmux attach" automatically? I.e. I'd like the shell window I open to be persistent across GUI sessions. If not, I guess off to file a Feature Request I go.
 

fracai

Guru
Joined
Aug 22, 2012
Messages
1,212
You could write a startup command that checks if you're in a tmux session (env variable? At least shell level would do it) and run tmux if you're not.
 

DaPlumber

Patron
Joined
May 21, 2014
Messages
246
You could write a startup command that checks if you're in a tmux session (env variable? At least shell level would do it) and run tmux if you're not.

Yes, that had occurred to me. However since I can't log into the GUI as anything other than root I'm a little loath to go messing with profiles etc. I'd also thought about making tmux attach the "login shell", but again: not for root and that rules out the GUI shell.
 

DaPlumber

Patron
Joined
May 21, 2014
Messages
246
Thanks for the reference, that should work ok for ssh to my non-root login
 
Status
Not open for further replies.
Top