diff options
author | Robert Jorgenson <rjorgenson@gmail.com> | 2016-01-15 02:19:12 +0300 |
---|---|---|
committer | Robert Jorgenson <rjorgenson@gmail.com> | 2016-01-15 02:19:12 +0300 |
commit | 6f2f78b21fe597ad55e5f87360b68b4a812a7d19 (patch) | |
tree | d3046c246ad5bddf65e25d479ac8165049e9e8f3 /powerlevel9k.zsh-theme | |
parent | 446f46473b2620bbe416488b68dd099be27f695a (diff) |
fixed conditional statement
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 95849e99..3e2beff0 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -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 |