mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-24 04:21:31 +01:00
fix installer on archlinux
This commit is contained in:
parent
a0fe7ac1f2
commit
93df72ef16
|
@ -137,6 +137,7 @@ function brethil_dotfiles_setup {
|
||||||
# mtr: mytraceroute, traceroute tool
|
# mtr: mytraceroute, traceroute tool
|
||||||
# pv: pipe view, monitor the progress of data through a pipe
|
# pv: pipe view, monitor the progress of data through a pipe
|
||||||
# byobu: tmux wrapper
|
# byobu: tmux wrapper
|
||||||
|
# htop: like top, but bettah
|
||||||
packages="zsh git grc ccze bmon mtr pv tmux byobu htop"
|
packages="zsh git grc ccze bmon mtr pv tmux byobu htop"
|
||||||
|
|
||||||
# Check if running as root, if try using sudo to install packages.
|
# 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
|
if [[ $(which apt-get ) ]]; then
|
||||||
install_command="${sudo}apt-get install"
|
install_command="${sudo}apt-get install"
|
||||||
elif [[ $(which pacman) ]]; then
|
elif [[ $(which pacman) ]]; then
|
||||||
packages="$packages yay" # also install the yay aur package manager
|
pacman -Sy yay # also install the yay aur package managery
|
||||||
install_command="${sudo}pacman -Sy"
|
packages="$packages"
|
||||||
|
install_command="${sudo}yay -Sy"
|
||||||
elif [[ $(which yum) ]]; then
|
elif [[ $(which yum) ]]; then
|
||||||
install_command="${sudo}yum"
|
install_command="${sudo}yum"
|
||||||
elif [[ $(which port) ]]; then
|
elif [[ $(which port) ]]; then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user