Reputation: 41470
I installed sublime text 2 and created a symlink to it and placed it in ~/bin. I added ~/bin to PATH variable in ~/.zshrc.
If I try to execute subl (sublime's symlink), I get:
zsh: command not found: subl
But if I execute ~/bin/subl, it works correctly.
Echoing the PATH shows that ~/bin is in the PATH variable.:
~/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
Any idea what can cause the command not found issue?
Upvotes: 1
Views: 4431
Reputation: 123400
bash interprets ~
in PATH, but most shells do not.
Use $HOME
instead.
Upvotes: 9