Replace Bash with Zsh

As I’ve talked about here, one of my PCs running KDE-Linux is still using Bash as it’s default shell, despite KDE Linux using zsh now.

I’ve tried changing with chsh -s $(which zsh) but it doesn’t do anything.

The .zshrc file in the home directory is also a lot different. I’ve tried replacing it with the file with the normal file all my other PCs have but it changed nothing.

It’s a user issue because it is working fine if I create a new user.

What should I do to get Zsh working by default ?

Is it possible that your default shell has changed but your terminal is still set to use the old shell?

Check your terminal settings for the shell.

Maybe remove your ZSH and install this? It’s what I always use.

h t t p s : / / github . com/romkatv/zsh4humans

I did a lot of weird commands and I though that just restarting Konsole was enough, but after a reboot it fixed itself. I’m not sure what did.

3 Likes

You always need to reboot after changing your shell with chsh for it to take full effect.

Besides, in Konsole’s options—as well as most other terminals—you can set it to use a shell other than the user’s designated system shell. It was somewhere in the Profile settings.

KDE Linux is using zsh now? Bit surprised since I was assuming KDE would prefer bash given how widespread it is. But then again, I’m that oddball who thinks ksh93 is cool, what do I know.

If zsh’s paths aren’t in the /etc/shells file, then

chsh -s $(which zsh)

will fail. I've noticed that the 'zsh' package in Fedora has a scriptlet that injects "/usr/bin/zsh" and "/bin/zsh" into the /etc/shells

Is it possible kde-linux’s zsh package isn’t doing that?