From 62bc815a4c61b6cef430f503b26684cd097edd71 Mon Sep 17 00:00:00 2001 From: Uyanide Date: Sat, 17 Jan 2026 00:53:15 +0100 Subject: [PATCH] fnm envs --- config/shell/.bash_profile | 5 +++++ config/shell/.config/fish/conf.d/10-env.fish | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/config/shell/.bash_profile b/config/shell/.bash_profile index 2fd646f..70607f1 100644 --- a/config/shell/.bash_profile +++ b/config/shell/.bash_profile @@ -2,6 +2,8 @@ # From archlinux's /etc/profile append_path() { + [[ -z "$1" ]] && return + [[ -d "$1" ]] || return case ":$PATH:" in *:"$1":*) ;; *) @@ -10,6 +12,8 @@ append_path() { esac } prepend_path() { + [[ -z "$1" ]] && return + [[ -d "$1" ]] || return case ":$PATH:" in *:"$1":*) ;; *) @@ -43,6 +47,7 @@ export PATH # fnm if type fnm &>/dev/null; then + prepend_path "$HOME/.local/share/fnm" eval $(fnm env --shell bash) fi diff --git a/config/shell/.config/fish/conf.d/10-env.fish b/config/shell/.config/fish/conf.d/10-env.fish index 8e3aef6..2797c98 100644 --- a/config/shell/.config/fish/conf.d/10-env.fish +++ b/config/shell/.config/fish/conf.d/10-env.fish @@ -28,6 +28,7 @@ end set -x -g GPG_TTY (tty) # fnm -# if type -q fnm -# eval (fnm env --shell fish) -# end +if type -q fnm + fish_add_path $HOME/.local/share/fnm + eval (fnm env --shell fish) +end