Add termux special case

This commit is contained in:
2025-04-25 17:50:08 -03:00
parent 3490a06700
commit 7578995c96

View File

@ -58,6 +58,10 @@ if hash lsb_release 2>/dev/null; then
# shellcheck disable=SC2139
alias update="$command"
fi
elif [[ "$TERMUX_VERSION" ]]; then
# Termux, special case
alias update-mirrors="termux-change-repo"
alias update="pkg update && pkg upgrade && pkg autoremove"
# Non privaledged environemnt, have to use local package managers like eget, nix, etc
else
alias update-mirrors="echo 'No mirrors to update'"