1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-12-26 09:11:30 +01:00

fix installer on archlinux

This commit is contained in:
bretello 2020-02-14 16:37:42 +01:00
parent a0fe7ac1f2
commit 93df72ef16

View File

@ -137,6 +137,7 @@ function brethil_dotfiles_setup {
# mtr: mytraceroute, traceroute tool
# pv: pipe view, monitor the progress of data through a pipe
# byobu: tmux wrapper
# htop: like top, but bettah
packages="zsh git grc ccze bmon mtr pv tmux byobu htop"
# Check if running as root, if try using sudo to install packages.
@ -164,8 +165,9 @@ function brethil_dotfiles_setup {
if [[ $(which apt-get ) ]]; then
install_command="${sudo}apt-get install"
elif [[ $(which pacman) ]]; then
packages="$packages yay" # also install the yay aur package manager
install_command="${sudo}pacman -Sy"
pacman -Sy yay # also install the yay aur package managery
packages="$packages"
install_command="${sudo}yay -Sy"
elif [[ $(which yum) ]]; then
install_command="${sudo}yum"
elif [[ $(which port) ]]; then