ZSH and byobu

Asked by Beau Bechdol

So I love byobu. There is one small issue I have found and that is I use ZSH. The issue is that when I start byobu It takes me to a bash prompt. Is there a way to tell it to start zsh?

Question information

Language:
English Edit question
Status:
Answered
For:
byobu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Dustin Kirkland  (kirkland) said :
#1

What version of byobu?

Revision history for this message
Dustin Kirkland  (kirkland) said :
#2

And what is your default shell in /etc/passwd?

Revision history for this message
Dustin Kirkland  (kirkland) said :
#3

byobu -v
and
grep $USER /etc/passwd

Revision history for this message
Beau Bechdol (bbechdol) said :
#4

Thanks for the quick reply. I will check the version and default shell when I get home. Thanks

Revision history for this message
Beau Bechdol (bbechdol) said :
#5

Here is the info you requested:

]$ byobu -v
byobu version 2.38
Screen version 4.00.03jw4 (FAU) 2-May-06

$ grep $USER /etc/passwd
beau:x:1000:1000:beau,,,:/home/beau:/bin/bash

Revision history for this message
Dustin Kirkland  (kirkland) said :
#6

On Mon, Jan 4, 2010 at 9:39 PM, Beau Bechdol <email address hidden> wrote:
> $ grep $USER /etc/passwd
> beau:x:1000:1000:beau,,,:/home/beau:/bin/bash

Your default shell is bash. Byobu just opens your default shell for each menu.

If you want to change your default shell, use "chsh", and switch it to zsh.

:-Dustin

Revision history for this message
Beau Bechdol (bbechdol) said :
#7

I did that, Still the same outcome. I ran the chsh command like so. Maybe I didn't do it right

chsh -s /bin/zsh

Another thing is when I run

less /etc/shells

It shows I have 2 zsh shells. One in /bin/zsh and another in /usr/bin/zsh. Could this be an issue?

Revision history for this message
Dustin Kirkland  (kirkland) said :
#8

You need to log out of your current desktop session (and possibly any shells) for the change to take effect.

I just did this on my desktop and it worked perfectly.

sudo apt-get install zsh
chsh -s /bin/zsh
(logout of byobu, all shells, desktop, log back in)
Launch gnome-terminal
byobu

And I'm getting zsh shells on all of my byobu windows now.

Revision history for this message
Beau Bechdol (bbechdol) said :
#9

Hmm I did do that and still the same. Let me restart the machine and see if that changes anything

Revision history for this message
Beau Bechdol (bbechdol) said :
#10

Well now when I start a terminal it starts my z shell. But when I start byobu it is still a bash shell.

Revision history for this message
Dustin Kirkland  (kirkland) said :
#11

Have you customized your byobu configuration?

Could you backup your byobu setup, and launch a new session?

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

And then launch a new byobu session.

Revision history for this message
Dustin Kirkland  (kirkland) said :
#12

Also, I see that I added a related fix for zsh in byobu-2.41.

You might try adding the Byobu PPA and upgrading to the latest version there.

Revision history for this message
Beau Bechdol (bbechdol) said :
#13

I will try that. It has been awhile since I had to add a PPA to my sources. How do you go about doing that?

Can you help with this problem?

Provide an answer of your own, or ask Beau Bechdol for more information if necessary.

To post a message you must log in.