2022-03-06 15:22:37 +00:00
|
|
|
#!/usr/bin/env dash
|
2022-01-08 15:24:17 +00:00
|
|
|
|
2024-02-18 15:48:28 +00:00
|
|
|
[ "$(. /etc/os-release && echo $ID)" = "artix" ] &&
|
|
|
|
{ paru -Syu; echo; }
|
2022-02-28 22:00:47 +00:00
|
|
|
|
2022-09-22 19:44:10 +00:00
|
|
|
command -v flatpak >/dev/null 2>&1 &&
|
2023-01-12 19:44:38 +00:00
|
|
|
{ flatpak update; echo; }
|
2022-09-22 19:44:10 +00:00
|
|
|
command -v npm >/dev/null 2>&1 &&
|
2023-01-12 19:44:38 +00:00
|
|
|
{ npm update --location="global"; echo; }
|
2022-09-22 19:44:10 +00:00
|
|
|
command -v rustup >/dev/null 2>&1 &&
|
2023-01-12 19:44:38 +00:00
|
|
|
{ rustup update; echo; }
|
2023-03-04 15:12:57 +00:00
|
|
|
command -v docker >/dev/null 2>&1 && [ -n "$(sudo docker images -q 2>/dev/null)" ] &&
|
2023-01-12 19:44:38 +00:00
|
|
|
{ sudo sh -c "docker images |
|
2023-02-22 12:50:51 +00:00
|
|
|
awk '(NR>1) && (\$2!~/none/) {print \$1\":\"\$2}' |
|
|
|
|
xargs -l docker pull"; echo; }
|
2022-05-22 16:08:26 +00:00
|
|
|
|
2023-04-06 15:38:47 +00:00
|
|
|
zsh -ic "antidote update; echo"
|
|
|
|
|
|
|
|
echo "Updating dotfiles..."
|
|
|
|
git -C "$(dirname "$(readlink -e "$0")")" pull
|