Change update/upgrade functions.

This commit is contained in:
Bartek Stalewski 2022-03-30 12:14:58 +02:00
parent 7b5115e63f
commit 78afda2bde

View File

@ -18,9 +18,14 @@ if [ $(command -v fd) ]; then
fi
function ud() {
wd dots
git pull
git submodule update -f
wd dots && git pull
for i in $XDG_DATA_HOME/repos/zsh_modules/*; do cd $i && git pull; done; cd
vim -c "PlugUpdate" -c "PlugClean" -c "q" -c "q"
rm -rf ~/go
}
function upgrade() {
case $(lsb_release -i | awk '{print $3}') in
Gentoo) eix-sync && eix-update && emerge -avuDU @world ;;
VoidLinux) xbps-install -Su && xbps-remove -RoO ;;
esac
}