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?

2 Answers 2


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.

  • 4
    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, 2013 at 19:21
  • 7
    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... May 16, 2013 at 19:47
  • 1
    Why not the byobu-select-backend command? Feb 15, 2017 at 13:19
  • 1
    Note that the settings file may be ~/.config/byobu/.tmux.conf, depending how your linux is configured.
    – ostrokach
    Jun 23, 2017 at 4:55
  • 1
    export SHELL=/usr/bin/zsh; byobu @Dev Apr 20, 2021 at 9:59

For me, Dustin's solution didn't seem to take at first.

I used to have a working setup where gnome-terminal launched zsh as a login shell, which then launched byobu with my window (split) setup and a couple of zsh instances in there. After a distro reinstall, the shell instances in the splits were suddenly bash, for whatever reason, even with the above fix.

Whenever I launched zsh in those splits I'd get a message from oh-my-zsh that a plugin was missing.

I installed the missing package for the plugin and configured it correctly, and now all stages of the setup execute correctly. I suspect that the error message from the sourcing process within oh-my-zsh may have caused a fallback to bash (possibly within tmux?).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .