mirror of https://github.com/ohmyzsh/ohmyzsh.git
Compare commits
1 Commits
96e3e9f3db
...
474d6e5f9c
Author | SHA1 | Date |
---|---|---|
|
474d6e5f9c |
|
@ -13,8 +13,6 @@ 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