1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-09-25 04:30:46 +00:00

fix prompt_virtualenv

This commit is contained in:
Roman Perepelitsa 2019-03-14 19:55:13 +01:00 committed by GitHub
parent 8f2fae5a38
commit 1b8c1f177b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1782,7 +1782,7 @@ prompt_vi_mode() {
# https://virtualenv.pypa.io/en/latest/ # https://virtualenv.pypa.io/en/latest/
prompt_virtualenv() { prompt_virtualenv() {
if [[ -n "$VIRTUAL_ENV" ]]; then if [[ -n "$VIRTUAL_ENV" ]]; then
"$1_prompt_segment" "$0" "$2" "blue" "$DEFAULT_COLOR" "${virtualenv_path:t}" 'PYTHON_ICON' "$1_prompt_segment" "$0" "$2" "blue" "$DEFAULT_COLOR" "${VIRTUAL_ENV:t}" 'PYTHON_ICON'
fi fi
} }