Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've become addicted to Byobu and I've recently shifted from bash to zsh; Now I want to combine the two, however I have a one initial pre-requisite:

I cannot make zsh the default shell for my user as it's a shared account and the rest of the team aren't as zsh happy as I am - That rules out the 'chsh -s /bin/zsh' option.

So, I discovered you can set a default-shell for tmux (which should follow across to byobu right?). That would be perfect as I'm also the only one really using Byobu on the server.

Problem is, I can't work out where to enable this option in the confusion of config files that's created in the tmux/byobu mix.

Any hints?

share|improve this question
up vote 29 down vote accepted

Put the following in your $HOME/.byobu/.tmux.conf:

set -g default-shell /usr/bin/zsh
set -g default-command /usr/bin/zsh

Full disclosure: I'm the author and maintainer of Byobu.

share|improve this answer
Thanks Dustin, I'm always super impressed that you hang around here! It's was the 'set -g default-command' bit I was missing in the end.. I didn't realise you needed the second configuration parameter for it to work. – Ashimema May 16 '13 at 19:21
No problem ;-) It's 1000x more useful when someone asks a good question like this, here in AskUbuntu or StackExchange, so that others can benefit from the answer :-) I just wish I could get all of the people who use IRC and Launchpad Questions over here... – Dustin Kirkland May 16 '13 at 19:47
I found that this loads two shells of the desired type, one clobbering the other. Setting just default-shell results in bash clobbering the shell I'm trying to set, but setting default-command results in exactly one of the desired shells being started. I guess having the same shell clobber itself is fine, but this could incur a bit of a start time hit as some shells take a while longer to start. – nedned May 17 at 9:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.