Merge branch 'dev' of https://github.com/askiiart/configs
This commit is contained in:
commit
af69964db4
3 changed files with 47 additions and 19 deletions
|
@ -12,19 +12,19 @@ fi
|
|||
command_exists() { type "$1" &>/dev/null; }
|
||||
|
||||
if command_exists "apt-get"; then
|
||||
$SUDO apt-get install zsh -y
|
||||
sudo apt-get install zsh -y
|
||||
elif command_exists "yum"; then
|
||||
$SUDO apt-get install zsh -y
|
||||
sudo apt-get install zsh -y
|
||||
elif command_exists "pacman"; then
|
||||
$SUDO pacman -S zsh --noconfirm --needed
|
||||
sudo pacman -S zsh --noconfirm --needed
|
||||
elif command_exists "zypper"; then
|
||||
$SUDO zypper install zsh -y
|
||||
sudo zypper install zsh -y
|
||||
elif command_exists "emerge"; then
|
||||
$SUDO emerge --ask app-shells/zsh
|
||||
$SUDO emerge --ask app-shells/zsh-completions
|
||||
$SUDO emerge --ask app-shells/gentoo-zsh-completions
|
||||
sudo emerge app-shells/zsh
|
||||
sudo emerge app-shells/zsh-completions
|
||||
sudo emerge app-shells/gentoo-zsh-completions
|
||||
elif command_exists "apk"; then
|
||||
$SUDO apk add zsh -y
|
||||
sudo apk add zsh -y
|
||||
else
|
||||
echo >&2 "Unsupported: unknown package manager"
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue