2

Long story short, I have a zsh setup, and I am using gnome terminal. I recently installed Byobu and enabled it.

Now when I start a new terminal and Byobu comes up, my shell is not a login shell.

I tried set -g as suggested in a different question, but it did not help.

Pablo Bianchi
  • 15,657

3 Answers3

3

Add to ~.byobu/.tmux.conf:

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

If using tmux as backend, else .screenrc.

Source.

Pablo Bianchi
  • 15,657
2

I was searching for the the same answer and finally I succeed by define ZSH as my default SH :
not sure those command was useful but just in case

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

and after I installed byobu :

# sudo apt-get install byobu -y

and enable it into a ZSH session with the command :

# byobu-enable

https://help.ubuntu.com/community/Byobu

JOduMonT
  • 357
  • I changed from bash to zsh when I already had byobu enabled, but after switching I just needed to run byobu-enable. I have not run the set -g commands and it still works. – HackerBaloo Jan 14 '22 at 06:13
0

I know this was answered five years ago, but it turns out there's a simpler way to set ZSH as your default shell in byobu. Per this Launchpad question, if you simply rename/remove the .byobu folder, it will create a new one based on the shell you're currently using.

The provided commands are:

mkdir $HOME/byobu_backup
mv $HOME/.screenrc $HOME/.byobu $HOME/byobu_backup