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 2 commits
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: 15 additions & 6 deletions 2-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,26 @@ 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 ~
addAUR () {
cd ~
git clone "https://aur.archlinux.org/$1.git"
cd ~/$1
makepkg -si --noconfirm
cd ~
}

if [$AURHELPER -ne ""] then
addAUR $AURHELPER
fi

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
for PACKADGE in $(cat ~/ArchTitus/pkg-files/aur-pkgs.txt) do
addAUR $PACKADGE
esac
godalming123 marked this conversation as resolved.
Show resolved Hide resolved

export PATH=$PATH:~/.local/bin
cp -r ~/ArchTitus/dotfiles/* ~/.config/
Expand Down
39 changes: 39 additions & 0 deletions startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,37 @@ read -p "Your key boards layout:" keymap
set_option KEYMAP $keymap
}

aurHelper () {
echo -ne "
Pick your AUR helper:
1) yay
2) paru
3) other
3) none
"
read -p "AUR helper:" aurHelperNum
case aurHelperNum in
"1")
set_option AURHELPER "yay"
;;
"2")
set_option AURHELPER "paru"
;;
"3")
read -p "AUR helper (must be packadge in AUR):" aurHelper
set_option AURHELPER aurHelper
;;
"4")
set_option aurHelper ""
;;
*)
echo ""
echo "that is a invalid option"
echo ""
aurHelper
;;
}

drivessd () {
echo -ne "
Is this an ssd? yes/no:
Expand Down Expand Up @@ -158,15 +189,23 @@ set_option nameofmachine $nameofmachine
clear
logo
userinfo

clear
logo
aurHelper

clear
logo
diskpart

clear
logo
filesystem

clear
logo
timezone

clear
logo
keymap