From d1537fa0a39d52985f456700161cacda881722b6 Mon Sep 17 00:00:00 2001 From: Frank Qing Date: Fri, 6 Jun 2025 23:12:59 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20(fnm.zsh):=20update=20FNM=5FPATH=20?= =?UTF-8?q?to=20use=20HOME=20variable=20and=20enhance=20fnm=20environment?= =?UTF-8?q?=20initialization=20for=20zsh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zshrc/fnm.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zshrc/fnm.zsh b/zshrc/fnm.zsh index cc70253..8242b3b 100644 --- a/zshrc/fnm.zsh +++ b/zshrc/fnm.zsh @@ -1,8 +1,8 @@ # fnm (Fast Node Manager) configuration # https://github.com/Schniz/fnm -FNM_PATH="/root/.local/share/fnm" +FNM_PATH="$HOME/.local/share/fnm" if [ -d "$FNM_PATH" ]; then - export PATH="/root/.local/share/fnm:$PATH" - eval "`fnm env`" + export PATH="$HOME/.local/share/fnm:$PATH" + eval "$(fnm env --use-on-cd --shell zsh)" fi