Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

allow ability to select aur helper #189

Merged
merged 10 commits into from
Jan 21, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions 2-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,23 @@ Installing AUR Softwares
source $HOME/ArchTitus/setup.conf

cd ~
git clone "https://aur.archlinux.org/yay.git"
cd ~/yay
makepkg -si --noconfirm
cd ~
case $AURHELPER in
"1")
git clone "https://aur.archlinux.org/yay.git"
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"
git clone "https://github.com/ChrisTitusTech/zsh"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
Expand Down
19 changes: 19 additions & 0 deletions startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,17 @@ read -p "Your key boards layout:" 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 () {
echo -ne "
Is this an ssd? yes/no:
Expand Down Expand Up @@ -158,15 +169,23 @@ set_option nameofmachine $nameofmachine
clear
logo
userinfo

clear
logo
aurHelper

clear
logo
diskpart

clear
logo
filesystem

clear
logo
timezone

clear
logo
keymap