support for topgrade in termux

This commit is contained in:
Mylloon 2024-04-03 08:40:27 +02:00
parent 9b36634d7c
commit 2e33a23edc
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -23,7 +23,7 @@ function main {
# === Packages == # === Packages ==
eval "apt-get install ${apt_arg} \ eval "apt-get install ${apt_arg} \
fish eza tealdeer bat wget" fish eza tealdeer bat wget topgrade"
# === Fish == # === Fish ==
@ -67,6 +67,17 @@ function main {
# === Git == # === Git ==
wget -q "${repo}"/dotfiles/.gitconfig -O "$HOME"/.gitconfig wget -q "${repo}"/dotfiles/.gitconfig -O "$HOME"/.gitconfig
# === Topgrade ==
wget -q "${repo}"/.config/topgrade/topgrade.toml -O "$HOME"/.config/topgrade.toml
# === Fix ==
# Since Termux isn't used a lot, I don't plan to make it a real distro
# supported by thoses scripts, so I give the bare minimum support to it
# Fix topgrade
sed -i "/topgrade/d" "$HOME"/.config/fish/conf.d/abbr.fish
} }
if type termux-info &> /dev/null; if type termux-info &> /dev/null;