added some zsh plugins

This commit is contained in:
JMARyA 2020-11-09 08:05:39 +01:00
parent 0ef3bd7a55
commit 3a44873f3a
No known key found for this signature in database
GPG key ID: 19BD48AEE60FA00B
14 changed files with 209 additions and 14 deletions

29
update.zsh Normal file
View file

@ -0,0 +1,29 @@
function update() {
if type "apt-get" &> /dev/null; then
sudo apt-get update;
sudo apt-get upgrade;
sudo apt-get dist-upgrade;
fi
if type "apk" &> /dev/null; then
sudo apk update;
sudo apk upgrade;
fi
if type "pacman" &> /dev/null; then
sudo pacman -Syu;
fi
if type "yum" &> /dev/null; then
yum upgrade;
fi
if type "snap" &> /dev/null; then
sudo snap refresh;
fi
if type "flatpak" &> /dev/null; then
flatpak update;
fi
if type "brew" &> /dev/null; then
brew update;
brew upgrade;
brew cask upgrade;
fi
}