Added option to choose AUR helper

This commit is contained in:
stojshic 2022-01-24 18:22:21 +01:00
parent 2b9328eda5
commit d6954323b6
2 changed files with 24 additions and 11 deletions

View File

@ -17,17 +17,19 @@ Installing AUR Softwares
# You can solve users running this script as root with this and then doing the same for the next for statement. However I will leave this up to you.
source $HOME/ArchTitus/setup.conf
cd ~
git clone "https://aur.archlinux.org/yay.git"
cd ~/yay
makepkg -si --noconfirm
cd ~
touch "~/.cache/zshhistory"
git clone "https://github.com/ChrisTitusTech/zsh"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
ln -s "~/zsh/.zshrc" ~/.zshrc
cd ~
touch "~/.cache/zshhistory"
git clone "https://github.com/ChrisTitusTech/zsh"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
ln -s "~/zsh/.zshrc" ~/.zshrc
yay -S --noconfirm --needed - < ~/ArchTitus/pkg-files/aur-pkgs.txt
if [[ ! $AUR_HELPER == none ]]; then
cd ~
git clone "https://aur.archlinux.org/$AUR_HELPER.git"
cd ~/$AUR_HELPER
makepkg -si --noconfirm
$AUR_HELPER -S --noconfirm --needed - < ~/ArchTitus/pkg-files/aur-pkgs.txt
fi
export PATH=$PATH:~/.local/bin
cp -r ~/ArchTitus/dotfiles/* ~/.config/

View File

@ -269,6 +269,14 @@ done
read -rep "Please enter your hostname: " nameofmachine
set_option NAME_OF_MACHINE $nameofmachine
}
aurhelper () {
echo -ne "Please enter your desired AUR helper:"
options=(paru yay picaur aura trizen pacaur none)
select_option $? 4 "${options[@]}"
aur_helper=${options[$?]}
set_option AUR_HELPER $aur_helper
}
# More features in future
# language (){}
@ -278,6 +286,9 @@ logo
userinfo
clear
logo
aurhelper
clear
logo
diskpart
clear
logo
@ -287,4 +298,4 @@ logo
timezone
clear
logo
keymap
keymap