How to Set NODE_PATH Dynamically in fish Shell
I found a need for this today, as Node.js needs the NODE_PATH
variable set to
find globally installed packages. Instantly reminded me of Ryan Dahl. It
makes the process a bit easier for cross-platform use.
# Node
if command -v npm &> /dev/null
set -x NODE_PATH (npm root -g)
end