Is it possible to include a command inside the PATH, that's run whenever PATH is read?
Use case:
I want to prepend the output of npm bin
to my path so I have access to local npm package binaries without having to type $(npm bin)/grunt
. If I cd to another node project, I'd want my path updated to point to the new output of npm bin
.