s/P9K_NODE_VERSION_PROJECT_ONLY/POWERLEVEL9K_NODE_VERSION_PROJECT_ONLY

pull/145/head
romkatv 5 years ago
parent 12a99c087d
commit 202f781e59

@ -1475,11 +1475,10 @@ function _p9k_cached_cmd_stdout_stderr() {
################################################################ ################################################################
# Segment to diplay Node version # Segment to diplay Node version
set_default P9K_NODE_VERSION_PROJECT_ONLY false
prompt_node_version() { prompt_node_version() {
(( $+commands[node] )) || return (( $+commands[node] )) || return
if [[ $P9K_NODE_VERSION_PROJECT_ONLY == true ]] ; then if (( _P9K_NODE_VERSION_PROJECT_ONLY )); then
local dir=$PWD local dir=$PWD
while true; do while true; do
[[ $dir == / ]] && return [[ $dir == / ]] && return
@ -3000,6 +2999,7 @@ _p9k_init_params() {
_p9k_declare -s POWERLEVEL9K_VPN_IP_INTERFACE "tun" _p9k_declare -s POWERLEVEL9K_VPN_IP_INTERFACE "tun"
_p9k_declare -i POWERLEVEL9K_LOAD_WHICH 5 _p9k_declare -i POWERLEVEL9K_LOAD_WHICH 5
_p9k_declare -b POWERLEVEL9K_NODENV_PROMPT_ALWAYS_SHOW 0 _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_RBENV_PROMPT_ALWAYS_SHOW 0
_p9k_declare -b POWERLEVEL9K_CHRUBY_SHOW_VERSION 1 _p9k_declare -b POWERLEVEL9K_CHRUBY_SHOW_VERSION 1
_p9k_declare -b POWERLEVEL9K_CHRUBY_SHOW_ENGINE 1 _p9k_declare -b POWERLEVEL9K_CHRUBY_SHOW_ENGINE 1

Loading…
Cancel
Save