diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2019-02-01 19:06:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-01 19:06:10 +0300 |
commit | 5c7d1009de08caf7297c099f4ec0cf6d03ae8e6a (patch) | |
tree | fc81f9fc287c56cd15b378f27a9538c7024b3a36 /powerlevel9k.zsh-theme | |
parent | bd340d4a88797e760efb28c1180254e7779c990f (diff) | |
parent | c56cbb800aceb56f3cf56dfb6e32527fec7e4c2e (diff) |
Merge pull request #1148 from dritter/remove_nodeenv_disable_prompt
Remove checking for NODEENV_DISABLE_PROMPT
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 51846bcf..63724823 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 } |