From 6100e7702bb51da3789b439ad017f42821cce02b Mon Sep 17 00:00:00 2001 From: Guido Date: Thu, 17 Nov 2022 17:20:16 +0100 Subject: [PATCH] bashrc.before anche con npm --- featlib/npm.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/featlib/npm.sh b/featlib/npm.sh index 692bb7a..e73f007 100755 --- a/featlib/npm.sh +++ b/featlib/npm.sh @@ -17,12 +17,12 @@ function feat_addpacks_npm_dev() { function feat_add_npm() { feat_addpacks_npm_dev - cat - "$HOME/.bashrc" <<- EOF > "$HOME/.bashrc.tmp" - export N_PREFIX="\$HOME/.n_prefix" + cat - "$HOME/.bashrc.before" <<- EOF > "$HOME/.bashrc.before.tmp" + export N_PREFIX="\$HOME/.local" export PATH="\$N_PREFIX/bin:\$PATH" EOF - mv "$HOME/.bashrc.tmp" "$HOME/.bashrc" - . "$HOME/.bashrc" + mv "$HOME/.bashrc.before.tmp" "$HOME/.bashrc.before" + . "$HOME/.bashrc.before" mkdir -p "$N_PREFIX" curl -L https://raw.githubusercontent.com/tj/n/master/bin/n | bash -s latest npm install -g n