Unify auto-fetch variables

This commit is contained in:
Talia 2021-10-05 14:16:54 +02:00
parent b281c9949b
commit 665c107ce3

View file

@ -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 [ "$SHELL_AUTOFETCH" -gt 0 ]; then if [ "$SHELL_AUTOFETCH_TIMEOUT" -gt 0 ]; then
autofetch=$(git__fetch $top) autofetch=$(git__fetch $top)
f=$((2-$autofetch)) f=$((2-$autofetch))
else else