How to set fish shell as default - old solutions seem not to work

I found this thread Changing Shell From Bash to Fish - #2 by nrickert

but neither the recommendation from https://fishshell.com/docs/current/index.html#default-shell
chsh -s /usr/bin/fish
“You are not allowed to change the shell for ‘foobar’.”
nor from the forum
usermod --shell /usr/bin/fish [username] work for opensuse tumbleweed with KDE on wayland.

Any idea why?

1/ Try checking whether fish is listed in /etc/shells

grep fish /etc/shells

If nothing is displayed, add it, then try again:

echo /usr/bin/fish | sudo tee -a /etc/shells

2/ Check that the path is correct

which fish
command -v fish

If the PATH is different, adapt solution 1/

In KDE, you need to specify /usr/bin/fish in the Konsole profile.

fish is in /etc/shells . What you recommend is in https://fishshell.com/docs/current/index.html#default-shell, too.
I ran
sudo chsh -s /usr/bin/fish <myuser>
which made it for me.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.