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