There's one item I used to use in $PATH, which is ~/.workspace/bin. I can't figure out where it's coming from.

I changed the user shell to /bin/sh, logged in from TTY, checked $PATH, and it was clear of this item.

Then I changed the shell to /usr/bin/fish, I echoed $PATH as a first thing in ~/.config/fish/config.fish, and that item was there!

Where could it come from? What else is the fish shell doing on startup? (I have an empty ~/.profile file)

  • Could be a universal variable: do set -U and see what variables are there. You might want to look for fish_user_paths -- fwiw this is why I don't use universal variables: I like configuration. Apr 29, 2019 at 14:20
  • For what files fish reads when you start a shell: fishshell.com/docs/current/index.html#initialization Apr 29, 2019 at 14:22
  • This may help: grep PATH /etc -rI or eventually grep PATH / -rI
    – Putnik
    Nov 27, 2019 at 12:28


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.