1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-16 17:50:09 +00:00

fixed conditional statement

This commit is contained in:
Robert Jorgenson 2016-01-14 16:19:12 -07:00
parent 446f46473b
commit 6f2f78b21f

View file

@ -531,7 +531,7 @@ prompt_node_version() {
# Node version from NVM
# Only prints the segment if different than the default value
prompt_nvm() {
[[ $(type nvm) =~ 'nvm is a shell function'* ]] && return
[[ ! $(type nvm) =~ 'nvm is a shell function'* ]] && return
local node_version=$(nvm current)
local nvm_default=$(cat $NVM_DIR/alias/default)
[[ -z "${node_version}" ]] && return