Rename auto-fetch variables

This commit is contained in:
Talia 2021-10-05 14:15:38 +02:00
parent 617e1f46ca
commit b281c9949b

View file

@ -31,8 +31,8 @@ git__fetch() {
then dir="$(cat $top/.git | sed -e 's/^gitdir: //')" then dir="$(cat $top/.git | sed -e 's/^gitdir: //')"
else dir="$1/.git" else dir="$1/.git"
fi fi
if [ -n "$BASH_AUTOFETCH_TIMEOUT" ]; then if [ -n "$SHELL_AUTOFETCH_TIMEOUT" ]; then
timeout=$BASH_AUTOFETCH_TIMEOUT timeout=$SHELL_AUTOFETCH_TIMEOUT
else else
timeout=60 timeout=60
fi fi
@ -56,7 +56,7 @@ gitprompt () {
top=$(timeout 1 git rev-parse --show-toplevel 2>/dev/null) top=$(timeout 1 git rev-parse --show-toplevel 2>/dev/null)
if [ -n "$top" ] if [ -n "$top" ]
then then
if [ "$BASH_AUTOFETCH" -gt 0 ]; then if [ "$SHELL_AUTOFETCH" -gt 0 ]; then
autofetch=$(git__fetch $top) autofetch=$(git__fetch $top)
f=$((2-$autofetch)) f=$((2-$autofetch))
else else