mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
fix(af-magic): fix venv prompt counting parenthesis (#13190)
This commit is contained in:
parent
f9d3e0ff56
commit
cb72d7dcbf
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ function afmagic_dashes {
|
||||||
if [[ -n "$python_env" && "$PS1" = *\(${python_env}\)* ]]; then
|
if [[ -n "$python_env" && "$PS1" = *\(${python_env}\)* ]]; then
|
||||||
echo $(( COLUMNS - ${#python_env} - 3 ))
|
echo $(( COLUMNS - ${#python_env} - 3 ))
|
||||||
elif [[ -n "$VIRTUAL_ENV_PROMPT" && "$PS1" = *${VIRTUAL_ENV_PROMPT}* ]]; then
|
elif [[ -n "$VIRTUAL_ENV_PROMPT" && "$PS1" = *${VIRTUAL_ENV_PROMPT}* ]]; then
|
||||||
echo $(( COLUMNS - ${#VIRTUAL_ENV_PROMPT} ))
|
echo $(( COLUMNS - ${#VIRTUAL_ENV_PROMPT} - 3 ))
|
||||||
else
|
else
|
||||||
echo $COLUMNS
|
echo $COLUMNS
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue