From 6ccfb0f29538e67eaeb3a2f4643732a315465179 Mon Sep 17 00:00:00 2001 From: GaspardCulis Date: Fri, 3 Nov 2023 09:42:11 +0100 Subject: [PATCH] Updated fnm init script --- shell/bash/.bashrc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/shell/bash/.bashrc b/shell/bash/.bashrc index 6dbcf91..4994459 100755 --- a/shell/bash/.bashrc +++ b/shell/bash/.bashrc @@ -30,9 +30,8 @@ export HISTSIZE= # fnm FNM_PATH="$HOME/.local/share/fnm" -if [ -f "$FNM_PATH" ]; then - export PATH="$FNM_PATH:$PATH" - eval "`fnm env`" +if test -d "$FNM_PATH" ; then + eval "$(fnm env --use-on-cd)" fi . "$HOME/.cargo/env"