diff --git a/common/.config/fish/functions/fish_prompt.fish b/common/.config/fish/functions/fish_prompt.fish index 7d62bd7..4f939fe 100755 --- a/common/.config/fish/functions/fish_prompt.fish +++ b/common/.config/fish/functions/fish_prompt.fish @@ -109,12 +109,12 @@ function fish_prompt --description 'Write out the prompt' set -f string_env "" set -f string_venv "" set -f string_rbenv "" - set -f string_nvm (nvm current) + set -f string_nvm (nvm current 2>/dev/null) if command -q rbenv - set -f string_rbenv (rbenv local) + set -f string_rbenv (rbenv local 2>/dev/null) if not test -n string_rbenv - set -f string_rbenv (rbenv global) + set -f string_rbenv (rbenv global 2>/dev/null) end if test {"$string_rbenv"} = "system" set -f string_rbenv ""