Unverified Commit 69b5737d authored by shelfofclub's avatar shelfofclub Committed by GitHub

fix(af-magic): fix python venv checking logic (#11495)

parent 416560c9
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment