Thanks Nicholas for the insight! Cheers,
-m On Wed, Nov 8, 2017 at 3:33 PM, Nicholas Marriott < [email protected]> wrote: > I don't think it makes much difference really. Might be slightly quicker > to login if you make tmux your shell but not sure it will be noticeable. > And it is a little harder to fix if it breaks. If you don't have root or > don't have console access to the box, I would go with the shell profile > way. Otherwise it probably doesn't make much difference. > > > On 8 Nov 2017 9:23 pm, "Matt Zagrabelny" <[email protected]> wrote: > > Greetings, > > I am looking to launch tmux automatically when I launch a terminal/ssh > session. > > I can: > > keep my login shell set to /bin/zsh > and put the following in my .zshrc: > > if [[ -z $TMUX ]]; then > exec tmux new > fi > > OR > > I can: > > set my login shell to /usr/bin/tmux > and put the following in my .tmux.conf: > > set -g default-shell /bin/zsh > > Are there any pros/cons to one way or the other? > > What are folk's opinions on the matter? > > Thanks! > > -m > > -- > You received this message because you are subscribed to the Google Groups > "tmux-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > > > > -- > You received this message because you are subscribed to the Google Groups > "tmux-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "tmux-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
