Remove checking for NODEENV_DISABLE_PROMPT

This variable is none of our buisness.
This commit is contained in:
Dominik Ritter 2019-02-01 11:09:42 +01:00
commit 2f05bbbb47
2 changed files with 2 additions and 23 deletions

View file

@ -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
}