From ff0425eed7de20327955d4e559ea65ac19865886 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Tue, 23 Jan 2024 19:34:31 +0000 Subject: [PATCH] Wrap fnm setup in check tha fnm is installed --- zshrc.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zshrc.zsh b/zshrc.zsh index b2fc8ae..f129f04 100644 --- a/zshrc.zsh +++ b/zshrc.zsh @@ -145,7 +145,9 @@ test -e /opt/homebrew/share/zsh-you-should-use/you-should-use.plugin.zsh && sour test -e /usr/share/zsh/plugins/zsh-you-should-use/you-should-use.plugin.zsh && source /usr/share/zsh/plugins/zsh-you-should-use/you-should-use.plugin.zsh # Setup Fast Node Manager -eval "$(fnm env --use-on-cd)" +if type fnm > /dev/null; then + eval "$(fnm env --use-on-cd)" +fi # Setup GitHub Copilot if type github-copilot-cli > /dev/null; then