fix(af-magic): fix venv prompt counting parenthesis (#13190)

master
Kalle Ahlström 9 months ago committed by GitHub
parent f9d3e0ff56
commit cb72d7dcbf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      themes/af-magic.zsh-theme

@ -14,7 +14,7 @@ function afmagic_dashes {
if [[ -n "$python_env" && "$PS1" = *\(${python_env}\)* ]]; then
echo $(( COLUMNS - ${#python_env} - 3 ))
elif [[ -n "$VIRTUAL_ENV_PROMPT" && "$PS1" = *${VIRTUAL_ENV_PROMPT}* ]]; then
echo $(( COLUMNS - ${#VIRTUAL_ENV_PROMPT} ))
echo $(( COLUMNS - ${#VIRTUAL_ENV_PROMPT} - 3 ))
else
echo $COLUMNS
fi

Loading…
Cancel
Save