shoestrap/assets/default/fish/functions/npm_activate.fish

12 lines
207 B
Fish
Raw Normal View History

2019-04-11 20:23:45 +00:00
function npm_activate
set -gx OLD_PATH $PATH
set -gx PATH (npm bin) $PATH
end
function npm_deactivate
if [ "$OLD_PATH" != "" ]
set -gx PATH $OLD_PATH
set -e OLD_PATH
end
end