I'd never heard of fish
before this. I just installed it so I could try it out (and deleted a few paragraphs I had written here before realizing that fish
is a shell).
It looks like set PATH dir-name $PATH
is the right syntax to prepend a directory to $PATH
.
But adding a relative directory name to $PATH
is almost certainly a bad idea, and your shell is doing you a favor by warning you when the directory doesn't exist. (fish
is designed to be user-friendly.)
Use an absolute path instead:
set PATH $PWD/bin $PATH
and first check whether $PWD/bin
exists, printing an error message if it doesn't.
As for the "set: Value too large to be stored in data type
" message, could you be adding the directory to your $PATH
multiple times? There should be some way to check whether a directory is already in $PATH
before adding it.