mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-17 21:30:07 +00:00
fixed conditional statement
This commit is contained in:
parent
446f46473b
commit
6f2f78b21f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue