Hide errors on node_manager current

This commit is contained in:
wesbaker 2021-01-23 15:54:37 -05:00
parent a191d93ece
commit b43a458b1e

View File

@ -39,8 +39,7 @@
# set -g theme_display_hostname ssh # set -g theme_display_hostname ssh
# set -g theme_display_sudo_user yes # set -g theme_display_sudo_user yes
# set -g theme_display_vi no # set -g theme_display_vi no
# set -g theme_display_nvm yes # set -g theme_display_node yes
# set -g theme_display_fvm yes
# set -g theme_avoid_ambiguous_glyphs yes # set -g theme_avoid_ambiguous_glyphs yes
# set -g theme_powerline_fonts no # set -g theme_powerline_fonts no
# set -g theme_nerd_fonts yes # set -g theme_nerd_fonts yes
@ -914,7 +913,7 @@ function __bobthefish_prompt_node -S -d 'Display current node version'
[ -n "$node_manager_dir" ] [ -n "$node_manager_dir" ]
or return or return
set -l node_version ("$node_manager" current) set -l node_version ("$node_manager" current 2> /dev/null)
[ -z $node_version -o "$node_version" = 'none' -o "$node_version" = 'system' ] [ -z $node_version -o "$node_version" = 'none' -o "$node_version" = 'system' ]
and return and return