aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'internal/p10k.zsh')
-rwxr-xr-xinternal/p10k.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index d99e4f13..eca9090c 100755
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -1475,11 +1475,10 @@ function _p9k_cached_cmd_stdout_stderr() {
################################################################
# Segment to diplay Node version
-set_default P9K_NODE_VERSION_PROJECT_ONLY false
prompt_node_version() {
(( $+commands[node] )) || return
- if [[ $P9K_NODE_VERSION_PROJECT_ONLY == true ]] ; then
+ if (( _P9K_NODE_VERSION_PROJECT_ONLY )); then
local dir=$PWD
while true; do
[[ $dir == / ]] && return
@@ -3000,6 +2999,7 @@ _p9k_init_params() {
_p9k_declare -s POWERLEVEL9K_VPN_IP_INTERFACE "tun"
_p9k_declare -i POWERLEVEL9K_LOAD_WHICH 5
_p9k_declare -b POWERLEVEL9K_NODENV_PROMPT_ALWAYS_SHOW 0
+ _p9k_declare -b POWERLEVEL9K_NODE_VERSION_PROJECT_ONLY 0
_p9k_declare -b POWERLEVEL9K_RBENV_PROMPT_ALWAYS_SHOW 0
_p9k_declare -b POWERLEVEL9K_CHRUBY_SHOW_VERSION 1
_p9k_declare -b POWERLEVEL9K_CHRUBY_SHOW_ENGINE 1