Uninstall fish shell completely

I have installed cachyos with gnome desktop. But I have issue to uninstall fish shell completely. As I can’t set variables in fish shell. I have tried to uninstall 5 times and completely reinstall cachyos more than 6 times from last few days.

As I am new to cachyos and don’t want to use fish shell. Anyone here to help me a complete instruction for this. I want to familier with bash and I want to use it.

I have tried below solution but it didn’t work.

chsh -s /bin/bash

After that I logout and login but not work. So I reboot but still shell is fish.

So I don’t want to use fish now. Else cachyos is blazing fast.

Thanks.

How are you trying to uninstall it? Odd that ‘chsh -s /usr/bin/bash’ didn’t work.

 sudo pacman -R fish

Another way

 rm -Rf /usr/local/etc/fish
 rm -Rf /usr/local/share/fish
 rm -Rf ~/.config/fish
 rm /usr/local/share/man/man1/fish*.1
 cd /usr/local/bin
 rm -f fish fish_indent

FYI: You can set variables in fish shell, for example: set TEST_NAME test_value

So not sure what is in use here but ..

I dont think the login shell is fish to begin with.

In environments like KDE Plasma the shell in konsole is set by the konsole profile in its settings.


Do not do this. This is just mucking up your system.

See above for possibly setting your desired shell.

Once that is handled .. then we can go about removing.

How have you tried to uninstall it? It should be pretty simple;

sudo pacman -Rns fish

I’m having a similar issue. Using chsh -s /bin/bash or chsh -s /bin/zsh doesn’t set the shell fully, as something in cachyos is setting an env variable that keeps persisting after shell close, daemon reload, reboot, relogin, etc.
❯ printenv | grep “SHELL”
SHELL=/bin/fish

I COULD explicitly tell a terminal such as kitty to use zsh, but I shouldn’t have to.

do chsh -s /usr/bin/bash and the shell should be changed persistantly

Are those the correct paths to those shells…?

❯ cat /etc/shells && cat /etc/passwd | grep scott && printenv | grep "SHELL"
# Pathnames of valid login shells.
# See shells(5) for details.

/bin/sh
/bin/bash
/bin/rbash
/usr/bin/sh
/usr/bin/bash
/usr/bin/rbash
/usr/bin/systemd-home-fallback-shell
/usr/bin/git-shell
/usr/bin/fish
/bin/fish
/bin/zsh
/usr/bin/zsh
scott:x:1000:1000:Scott:/home/scott:/bin/zsh
SHELL=/bin/fish