From bd7c5020f94d0b856af827e26f16ad45f7b7db45 Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Tue, 3 Oct 2023 10:40:06 +0300 Subject: [PATCH] Update pip and cargo on ubuntu and termux --- home/.config/zsh/04-aliases.zsh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/home/.config/zsh/04-aliases.zsh b/home/.config/zsh/04-aliases.zsh index 4230479..acece61 100644 --- a/home/.config/zsh/04-aliases.zsh +++ b/home/.config/zsh/04-aliases.zsh @@ -181,8 +181,10 @@ update() { doas apt update && doas apt full-upgrade -y && doas apt autoremove -y && doas apt autoclean -y {%@@ elif distro_id == "termux" @@%} pkg update && pkg upgrade --yes - pip install --upgrade $(pip list --outdated | tail -n +3 | awk '{print $1}') - cargo install-update -a + {%@@ endif @@%} + {%@@ if distro_id == "termux" or distro_id == "ubuntu" @@%} + pip-update-installed + cargo-update-installed {%@@ endif @@%} } @@ -196,6 +198,14 @@ update() { {%@@ endif @@%} } + pip-update-installed() { + pip install --upgrade $(pip list --outdated | tail -n +3 | awk '{print $1}') + } + + cargo-update-installed() { + cargo install-update -a + } + {%@@ if profile == "Moria" @@%} repo() { aur sync -Su --margs --noconfirm