mirror of https://github.com/ohmyzsh/ohmyzsh.git
Compare commits
3 Commits
7e85465957
...
b756c2033a
Author | SHA1 | Date |
---|---|---|
John Pocock | b756c2033a | |
Kalle Ahlström | d82669199b | |
dependabot[bot] | 9c8afcc3ee |
|
@ -1,5 +1,5 @@
|
||||||
certifi==2024.12.14
|
certifi==2024.12.14
|
||||||
charset-normalizer==3.4.0
|
charset-normalizer==3.4.1
|
||||||
idna==3.10
|
idna==3.10
|
||||||
PyYAML==6.0.2
|
PyYAML==6.0.2
|
||||||
requests==2.32.3
|
requests==2.32.3
|
||||||
|
|
|
@ -13,6 +13,8 @@ function afmagic_dashes {
|
||||||
# the prompt, account for it when returning the number of dashes
|
# the prompt, account for it when returning the number of 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
|
||||||
|
echo $(( COLUMNS - ${#VIRTUAL_ENV_PROMPT} ))
|
||||||
else
|
else
|
||||||
echo $COLUMNS
|
echo $COLUMNS
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue