mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
mend
This commit is contained in:
parent
80d1f26501
commit
489ead1c25
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ function afmagic_dashes {
|
||||||
# check either virtualenv or condaenv variables
|
# check either virtualenv or condaenv variables
|
||||||
local python_env_dir="${VIRTUAL_ENV:-$CONDA_DEFAULT_ENV}"
|
local python_env_dir="${VIRTUAL_ENV:-$CONDA_DEFAULT_ENV}"
|
||||||
local python_env="${python_env_dir##*/}"
|
local python_env="${python_env_dir##*/}"
|
||||||
|
|
||||||
# if there is a python virtual environment and it is displayed in
|
# if there is a python virtual environment and it is displayed in
|
||||||
# the prompt, account for it when returning the number of dashes
|
# the prompt, account for it when returning the number of dashes
|
||||||
if [[ -n "$python_env" && "$PS1" = *\(${python_env}\)* ]]; then
|
if [[ -n "$python_env" && "$PS1" = *\(${python_env}\)* ]]; then
|
||||||
|
|
Loading…
Reference in a new issue