fix bug and check the field
This commit is contained in:
parent
0486623110
commit
59d343d5b9
32
2-user.sh
32
2-user.sh
|
|
@ -17,30 +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 () {
|
||||||
case $AURHELPER in
|
cd ~
|
||||||
"1")
|
git clone "https://aur.archlinux.org/$1.git"
|
||||||
git clone "https://aur.archlinux.org/yay.git"
|
cd ~/$1
|
||||||
cd ~/yay
|
makepkg -si --noconfirm
|
||||||
makepkg -si --noconfirm
|
cd ~
|
||||||
cd ~ ;;
|
}
|
||||||
"2")
|
|
||||||
git clone "https://aur.archlinux.org/paru.git"
|
if [$AURHELPER -ne ""] then
|
||||||
cd ~/paru
|
addAUR $AURHELPER
|
||||||
makepkg -si --noconfirm
|
fi
|
||||||
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
|
||||||
ln -s "~/zsh/.zshrc" ~/.zshrc
|
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
|
||||||
|
|
||||||
export PATH=$PATH:~/.local/bin
|
export PATH=$PATH:~/.local/bin
|
||||||
cp -r ~/ArchTitus/dotfiles/* ~/.config/
|
cp -r ~/ArchTitus/dotfiles/* ~/.config/
|
||||||
|
|
|
||||||
24
startup.sh
24
startup.sh
|
|
@ -113,10 +113,30 @@ echo -ne "
|
||||||
Pick your AUR helper:
|
Pick your AUR helper:
|
||||||
1) yay
|
1) yay
|
||||||
2) paru
|
2) paru
|
||||||
|
3) other
|
||||||
3) none
|
3) none
|
||||||
"
|
"
|
||||||
read -p "AUR helper:" aurHelper
|
read -p "AUR helper:" aurHelperNum
|
||||||
set_option AURHELPER $aurHelper
|
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 () {
|
drivessd () {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue