Compare commits

..

1 Commits

Author SHA1 Message Date
baltic-tea 474d6e5f9c
Merge c7d172b22e into 9c8afcc3ee 2024-12-30 14:44:56 +08:00
1 changed files with 0 additions and 2 deletions

View File

@ -13,8 +13,6 @@ function afmagic_dashes {
# the prompt, account for it when returning the number of 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} ))
else
echo $COLUMNS
fi