aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2023-05-08 09:57:29 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2023-05-08 09:57:29 +0300
commit7039779c19c7b7b3f954abfa1667c465d723dbe7 (patch)
tree003e54808412be484af54889c5c28c96881db23a /internal/p10k.zsh
parent5d16c106ed2807fb368dcac4df0e2b3dd619bb8d (diff)
parent4ed8aae3246da5c8f16978266ba6af139a1d06ca (diff)
Merge branch 'zaidhaan-nvm-always-show'
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r--internal/p10k.zsh6
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index cf32f9ba..87af17e8 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -2567,7 +2567,10 @@ _p9k_nvm_ls_current() {
prompt_nvm() {
[[ -n $NVM_DIR ]] && _p9k_nvm_ls_current || return
local current=$_p9k__ret
- ! _p9k_nvm_ls_default || [[ $_p9k__ret != $current ]] || return
+ _p9k_nvm_ls_default
+ if (( !_POWERLEVEL9K_NVM_PROMPT_ALWAYS_SHOW )); then
+ [[ $current == $_p9k__ret ]] && return
+ fi
if (( !_POWERLEVEL9K_NVM_SHOW_SYSTEM )); then
[[ $current == system ]] && return
fi
@@ -7533,6 +7536,7 @@ _p9k_init_params() {
_p9k_declare -b POWERLEVEL9K_NODENV_PROMPT_ALWAYS_SHOW 0
_p9k_declare -a POWERLEVEL9K_NODENV_SOURCES -- shell local global
_p9k_declare -b POWERLEVEL9K_NODENV_SHOW_SYSTEM 1
+ _p9k_declare -b POWERLEVEL9K_NVM_PROMPT_ALWAYS_SHOW 0
_p9k_declare -b POWERLEVEL9K_NVM_SHOW_SYSTEM 1
_p9k_declare -b POWERLEVEL9K_RBENV_PROMPT_ALWAYS_SHOW 0
_p9k_declare -a POWERLEVEL9K_RBENV_SOURCES -- shell local global