0

I used the following to set my default shell

chsh -s `which fish`

Which works great, but many commands such as brew and npm no longer works. Previously, accessing fish shell from zsh shell still allows me to access those commands.

How do I enable Fish shell to access the commands or at least add the commands.

4
  • Didn't I see this question earlier today? Oct 20, 2021 at 1:22
  • @glennjackman yes, but I was told I should ask the question here. And I wanted to see if there are other potential solutions regarding my issue
    – Adwin Ang
    Oct 20, 2021 at 1:43
  • 3
    You probably don't have your PATH set up correctly. Check what the value is in your previous shell with echo "$PATH" (or in zsh with every path on one line: for p in $path; echo $p) and adding the missing ones to fish. Sometimes these programs set up things in /etc/profile.d or whatnot for Bourne-like shells, but that won't work for fish so you'll need to do it manually. Oct 20, 2021 at 1:52
  • @MartinTournoij I see, thank you. That helped
    – Adwin Ang
    Oct 20, 2021 at 5:06

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.