Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apps installed with homebrew in the host don't work in Fish shell after chsh #244

Closed
bshor opened this issue Apr 4, 2024 · 3 comments
Closed

Comments

@bshor
Copy link

bshor commented Apr 4, 2024

I'm running Bazzite with the latest image.

I installed homebrew on the host. It works great for installing apps into the user directory. My favorite shell, fish, is already pre-installed in Bazzite. Awesome!

But when I try to change shells with chsh -s /usr/bin/fish, the apps I previously installed with homebrew in bash are no longer found.

More curiously, if I enter the fish shell from bash by just typing fish, I am able to access the commands I previously installed under bash. But not if I change shells and restart the terminal app (Ptyxis).

@lorduskordus
Copy link

Create a file either in ~/.config/fish/conf.d or /etc/fish/conf.d
Name it however you like, but it needs to end with .fish

Save this into the file:

test -d /home/linuxbrew/.linuxbrew; and status --is-interactive; and eval (/home/linuxbrew/.linuxbrew/bin/brew shellenv | source)

That's what I use. Alternatively, have a look here.

@citrixscu
Copy link

This should be fixed as of a few days ago. See Issue #1205

@boredsquirrel
Copy link

please do not change your shell!!! Fish is not POSIX compliant. Try to run a random bash or even shell script in fish, it will likely fail.

You can only change your user shell to a POSIX compliant shell, and maybe there are even things in the OS that depend on bash.

Instead, change the shell for your terminal emulator. In Konsole that works through Profiles, and GNOMEs Console also has a way.

@castrojo castrojo closed this as completed Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants