mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-12 20:21:02 +01:00
fix(af-magic): fix python venv checking logic (#11495)
This commit is contained in:
parent
416560c9bf
commit
69b5737daf
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ function afmagic_dashes {
|
|||
|
||||
# if there is a python virtual environment and it is displayed in
|
||||
# the prompt, account for it when returning the number of dashes
|
||||
if [[ -n "$python_env" && "$PS1" = \(* ]]; then
|
||||
if [[ -n "$python_env" && "$PS1" = *\(${python_env}\)* ]]; then
|
||||
echo $(( COLUMNS - ${#python_env} - 3 ))
|
||||
else
|
||||
echo $COLUMNS
|
||||
|
|
Loading…
Reference in a new issue