mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-30 08:44:41 +00:00
fixed conditional statement
This commit is contained in:
@@ -531,7 +531,7 @@ prompt_node_version() {
|
|||||||
# Node version from NVM
|
# Node version from NVM
|
||||||
# Only prints the segment if different than the default value
|
# Only prints the segment if different than the default value
|
||||||
prompt_nvm() {
|
prompt_nvm() {
|
||||||
[[ $(type nvm) =~ 'nvm is a shell function'* ]] && return
|
[[ ! $(type nvm) =~ 'nvm is a shell function'* ]] && return
|
||||||
local node_version=$(nvm current)
|
local node_version=$(nvm current)
|
||||||
local nvm_default=$(cat $NVM_DIR/alias/default)
|
local nvm_default=$(cat $NVM_DIR/alias/default)
|
||||||
[[ -z "${node_version}" ]] && return
|
[[ -z "${node_version}" ]] && return
|
||||||
|
|||||||
Reference in New Issue
Block a user