update
This commit is contained in:
parent
10efc3d280
commit
1e42a87ce3
3 changed files with 22 additions and 16 deletions
|
|
@ -36,8 +36,20 @@ EOF
|
|||
environment.etc."profile.d/50-npm-global.sh".text = ''
|
||||
case ":$PATH:" in
|
||||
*:"$HOME/.npm-global/bin":*) ;;
|
||||
*) [ -d "$HOME/.npm-global/bin" ] && export PATH="$HOME/.npm-global/bin:$PATH" ;;
|
||||
*) if [ -d "$HOME/.npm-global/bin" ]; then
|
||||
PATH="$HOME/.npm-global/bin:$PATH"
|
||||
export PATH
|
||||
fi ;;
|
||||
esac
|
||||
'';
|
||||
|
||||
environment.etc."fish/conf.d/50-npm-global.fish".text = ''
|
||||
if test -d "$HOME/.npm-global/bin"
|
||||
if not contains -- "$HOME/.npm-global/bin" $PATH
|
||||
set -gx PATH "$HOME/.npm-global/bin" $PATH
|
||||
end
|
||||
end
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue