allow ability to select aur helper

This commit is contained in:
godalming123 2022-01-16 17:57:50 +00:00
parent d415a6d1e3
commit 0486623110
2 changed files with 36 additions and 4 deletions

View File

@ -18,10 +18,23 @@ Installing AUR Softwares
source $HOME/ArchTitus/setup.conf source $HOME/ArchTitus/setup.conf
cd ~ cd ~
git clone "https://aur.archlinux.org/yay.git" case $AURHELPER in
cd ~/yay "1")
makepkg -si --noconfirm git clone "https://aur.archlinux.org/yay.git"
cd ~ cd ~/yay
makepkg -si --noconfirm
cd ~ ;;
"2")
git clone "https://aur.archlinux.org/paru.git"
cd ~/paru
makepkg -si --noconfirm
cd ~ ;;
"3")
echo ""
echo "no aur helper selected"
echo ""
esac
touch "~/.cache/zshhistory" touch "~/.cache/zshhistory"
git clone "https://github.com/ChrisTitusTech/zsh" git clone "https://github.com/ChrisTitusTech/zsh"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k

View File

@ -108,6 +108,17 @@ read -p "Your key boards layout:" keymap
set_option KEYMAP $keymap set_option KEYMAP $keymap
} }
aurHelper () {
echo -ne "
Pick your AUR helper:
1) yay
2) paru
3) none
"
read -p "AUR helper:" aurHelper
set_option AURHELPER $aurHelper
}
drivessd () { drivessd () {
echo -ne " echo -ne "
Is this an ssd? yes/no: Is this an ssd? yes/no:
@ -158,15 +169,23 @@ set_option nameofmachine $nameofmachine
clear clear
logo logo
userinfo userinfo
clear
logo
aurHelper
clear clear
logo logo
diskpart diskpart
clear clear
logo logo
filesystem filesystem
clear clear
logo logo
timezone timezone
clear clear
logo logo
keymap keymap