Merge pull request #189 from godalming123/allow-ability-to-select-aur-helper
allow ability to select aur helper
This commit is contained in:
commit
94ae02d743
21
2-user.sh
21
2-user.sh
|
|
@ -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.
|
# 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
|
source $HOME/ArchTitus/setup.conf
|
||||||
|
|
||||||
cd ~
|
addAUR () {
|
||||||
git clone "https://aur.archlinux.org/yay.git"
|
cd ~
|
||||||
cd ~/yay
|
git clone "https://aur.archlinux.org/$1.git"
|
||||||
makepkg -si --noconfirm
|
cd ~/$1
|
||||||
cd ~
|
makepkg -si --noconfirm
|
||||||
|
cd ~
|
||||||
|
}
|
||||||
|
|
||||||
|
if [${AURHELPER} -ne ""] then
|
||||||
|
addAUR ${AURHELPER}
|
||||||
|
fi
|
||||||
|
|
||||||
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
|
||||||
ln -s "~/zsh/.zshrc" ~/.zshrc
|
ln -s "~/zsh/.zshrc" ~/.zshrc
|
||||||
|
|
||||||
yay -S --noconfirm --needed - < ~/ArchTitus/pkg-files/aur-pkgs.txt
|
for PACKAGE in $(cat ~/ArchTitus/pkg-files/aur-pkgs.txt) do
|
||||||
|
addAUR $PACKAGE
|
||||||
|
esac
|
||||||
|
|
||||||
export PATH=$PATH:~/.local/bin
|
export PATH=$PATH:~/.local/bin
|
||||||
cp -r ~/ArchTitus/dotfiles/* ~/.config/
|
cp -r ~/ArchTitus/dotfiles/* ~/.config/
|
||||||
|
|
|
||||||
41
startup.sh
41
startup.sh
|
|
@ -108,6 +108,37 @@ 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) other
|
||||||
|
4) 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"
|
||||||
|
aurHelper
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
drivessd () {
|
drivessd () {
|
||||||
echo -ne "
|
echo -ne "
|
||||||
Is this an ssd? yes/no:
|
Is this an ssd? yes/no:
|
||||||
|
|
@ -158,15 +189,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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue