Skip to content

Commit 6f97b2a

Browse files
committed
fixup! feat: install fnm to manage Node.js
Signed-off-by: Vladyslav Dukhin <[email protected]>
1 parent f74329c commit 6f97b2a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/install-fnm.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
# exit immediately if a pipeline exits with a non-zero status
44
set -Eeuxo pipefail
55

6+
FNM_PATH="$HOME/.fnm"
7+
68
# Install FNM (https://github.com/Schniz/fnm)
7-
curl -fsSL https://fnm.vercel.app/install | bash -s -- --force-no-brew --install-dir "$HOME/.fnm" --skip-shell
9+
curl -fsSL https://fnm.vercel.app/install | bash -s -- --force-no-brew --install-dir "$FNM_PATH" --skip-shell
810

911
# Setup Fish shell for FNM
1012
mkdir -p ~/.config/fish/conf.d
@@ -14,7 +16,7 @@ fnm env --use-on-cd --version-file-strategy=recursive --resolve-engines --shell
1416
EOF
1517

1618
# Setup Fish FNM completions
17-
fnm completions --shell=fish > ~/.config/fish/completions/fnm.fish
19+
"$FNM_PATH/fnm" completions --shell=fish > ~/.config/fish/completions/fnm.fish
1820

1921
# Install latest Node.js version
20-
fnm install --latest
22+
"$FNM_PATH/fnm" install --latest

0 commit comments

Comments
 (0)