aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-07-24 00:17:01 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-07-24 00:17:01 +0300
commit202f781e59ff49d8745f641fd8208e32b0a510e0 (patch)
tree67e8cec98c76949180d08db75eb3b7a4e4d0afb2 /internal/p10k.zsh
parent12a99c087d1005c9ea783a4a1b1c89ad7b7ff647 (diff)
s/P9K_NODE_VERSION_PROJECT_ONLY/POWERLEVEL9K_NODE_VERSION_PROJECT_ONLY
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