d82669199b5d900b50fd06dd3518c277f0def869
- Author
- Kalle Ahlström <71292737+kahlstrm@users.noreply.github.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
fix(af-magic): add logic for virtualenv separator (#12875)
Diff
1diff --git a/themes/af-magic.zsh-theme b/themes/af-magic.zsh-theme
2index 70549d01fd03c996970cc00505bd3ec120a6927c..668c4e5de91cef8921fb804c961a9fd3b3c21c70 100644
3--- a/themes/af-magic.zsh-theme
4+++ b/themes/af-magic.zsh-theme
5@@ -13,6 +13,8 @@ function afmagic_dashes {
6 # the prompt, account for it when returning the number of dashes
7 if [[ -n "$python_env" && "$PS1" = *\(${python_env}\)* ]]; then
8 echo $(( COLUMNS - ${#python_env} - 3 ))
9+ elif [[ -n "$VIRTUAL_ENV_PROMPT" && "$PS1" = *${VIRTUAL_ENV_PROMPT}* ]]; then
10+ echo $(( COLUMNS - ${#VIRTUAL_ENV_PROMPT} ))
11 else
12 echo $COLUMNS
13 fi