Initial Commit

This commit is contained in:
Chris Titus 2024-08-15 16:23:21 -05:00
parent 5a8a6891ca
commit 2f63f00294
3 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,25 @@
#!/bin/sh -e
. "$(dirname "$0")/../../common-script.sh"
installDepend() {
case $PACKAGER in
pacman)
if ! command_exists paru; then
echo "Installing paru as AUR helper..."
sudo "$PACKAGER" --noconfirm -S base-devel
cd /opt && sudo git clone https://aur.archlinux.org/paru.git && sudo chown -R "$USER": ./paru
cd paru && makepkg --noconfirm -si
echo "Paru installed"
else
echo "Paru already installed"
fi
;;
*)
echo "Unsupported package manager: $PACKAGER"
;;
esac
}
checkEnv
installDepend

View File

@ -0,0 +1,25 @@
#!/bin/sh -e
. "$(dirname "$0")/../../common-script.sh"
installDepend() {
case $PACKAGER in
pacman)
if ! command_exists yay; then
echo "Installing yay as AUR helper..."
sudo "$PACKAGER" --noconfirm -S base-devel
cd /opt && sudo git clone https://aur.archlinux.org/yay-git.git && sudo chown -R "$USER": ./yay-git
cd yay-git && makepkg --noconfirm -si
echo "Yay installed"
else
echo "Aur helper already installed"
fi
;;
*)
echo "Unsupported package manager: $PACKAGER"
;;
esac
}
checkEnv
installDepend

View File

@ -23,6 +23,19 @@ pub static TABS: LazyLock<Vec<Tab>> = LazyLock::new(|| {
name: "root", name: "root",
command: Command::None, command: Command::None,
} => { } => {
ListNode {
name: "Arch Linux",
command: Command::None,
} => {
ListNode {
name: "Yay AUR Helper",
command: Command::LocalFile("system-setup/arch/yay-setup.sh"),
},
ListNode {
name: "Paru AUR Helper",
command: Command::LocalFile("system-setup/arch/paru-setup.sh"),
}
},
ListNode { ListNode {
name: "Full System Update", name: "Full System Update",
command: Command::LocalFile("system-update.sh"), command: Command::LocalFile("system-update.sh"),