User directory in PATH in zsh: ~ Does Not Work
- by Yar
I'm doing this in my .zshrc
PATH="~/scripts:$PATH"
and if I do echo $PATH it appears as the first thing in the path. Yet this directory isn't included in the executable path (nor for tab-completion). What am I doing wrong? ls ~/scripts shows the directory as expected.
Edit: This works, though... I guess ~ doesn't work in the path?
#PATH="~/scripts:$PATH"
PATH="/Users/yar/scripts:$PATH"