0

I added a directory modifying ~/.profile and adding export PATH=$PATH:/home/...etc etc. But I realized that using zsh terminal I couldn't use the recently installed binary until I logged out from zsh.

Thanks in advance.

(Using GNOME and Bash)

10
  • Can you show us what the command echo $PATH outputs when run in zsh. Jul 14, 2015 at 23:17
  • Hi, here's the result > /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/bib/active/bin Jul 15, 2015 at 17:00
  • Is that /opt/bib/active/bin folder the directory you tried to add? Jul 15, 2015 at 23:12
  • 1
    Please see this answer. Jul 16, 2015 at 2:00
  • No, I tried to add "export PATH=$PATH:/home/andrelo/Desktop/ONA/OMA/bin" to the end of ~/.profile. Thanks for your help. Jul 16, 2015 at 16:26

1 Answer 1

1

Your current "zsh terminal" has to be told to reread ~/.profile to see the changed contents.

  source ~/.profile

should do the trick.

1
  • I typed that, back in the zsh shell but that didn't work. I logged out but still can't run the binary. Could you give me more details on how to do it? Thanks Jul 14, 2015 at 21:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .