diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2019-02-01 13:09:42 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2019-02-01 13:09:42 +0300 |
commit | 2f05bbbb475fb032b9881a859ef4257c23274e8d (patch) | |
tree | f6f9a69ee866add31295fd272f462d9b61dcc2c3 /powerlevel9k.zsh-theme | |
parent | 6ccdfdf37e47f67683c016426cac89c6a3ac9fb0 (diff) |
Remove checking for NODEENV_DISABLE_PROMPT
This variable is none of our buisness.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 383a3b91..a4ac080a 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -1238,9 +1238,8 @@ prompt_nvm() { ################################################################ # Segment to display NodeEnv prompt_nodeenv() { - local nodeenv_path="$NODE_VIRTUAL_ENV" - if [[ -n "$nodeenv_path" && "$NODE_VIRTUAL_ENV_DISABLE_PROMPT" != true ]]; then - local info="$(node -v)[$(basename "$nodeenv_path")]" + if [[ -n "$NODE_VIRTUAL_ENV" ]]; then + local info="$(node -v)[${NODE_VIRTUAL_ENV:t}]" "$1_prompt_segment" "$0" "$2" "black" "green" "$info" 'NODE_ICON' fi } |