From d164a202dd152a39ba2e6f085ae355a12e4f20e0 Mon Sep 17 00:00:00 2001 From: Tim Date: Mon, 5 Jun 2023 15:25:58 +0200 Subject: [PATCH] Fix zshrc without fnm --- zsh/.zshrc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 9be1963..5d112ef 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -167,5 +167,8 @@ export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin # fnm -export PATH="/home/tim/.local/share/fnm:$PATH" -eval "`fnm env`" +if command -v fnm &> /dev/null +then + export PATH="/home/tim/.local/share/fnm:$PATH" + eval "`fnm env`" +fi