This commit is contained in:
firebadnofire 2024-04-15 12:44:37 +00:00
parent 5417c4abf5
commit ef74412fa7
Signed by: firebadnofire
GPG Key ID: EF6539F1FA16DEB7
3 changed files with 129 additions and 0 deletions

1
packages Normal file
View File

@ -0,0 +1 @@
aria2 zip curl zsh git fzy unzip neofetch

68
zsh.sh Executable file
View File

@ -0,0 +1,68 @@
#!/bin/bash
MAINPACKS="aria2 zip curl zsh git fzy unzip neofetch sudo"
while true; do
# Display the menu
echo "Menu:"
echo "1. Debian"
echo "2. Arch"
echo "3. RHEL"
echo "4. Raspberry Pi"
echo "5. Install Zshrc"
echo "e. Exit"
# Prompt the user for input
read -p "Please enter your selection: " choice
# Use a case statement to handle the user's selection
case $choice in
1)
echo "You chose Debian"
sudo apt install -y "$MAINPACKS"
bash -c "$(curl -sL https://git.io/vokNn)"
sudo curl -o /etc/apt-fast.conf https://archuser.org/aptf
;;
2)
echo "You chose Arch"
;;
3)
echo "You chose RHEL"
sudo dnf install -y "$MAINPACKS"
;;
4)
echo "You chose Raspberry Pi"
curl https://download.argon40.com/argon1.sh | bash
echo "Run distro configs"
;;
5)
echo "You chose Install Zshrc"
sh -c "$(curl -L -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
rm ~/.zshrc
curl -L -o ~/.zshrc https://archuser.org/zshrc_remote
curl -L -o ~/.zshrc_bpk https://live.archuser.org/zshrc
curl -L -o ~/.cow https://archuser.org/cow
curl -L -o ~/ssh.zip https://archuser.org/ssh.zip
cd ~
read -p "Enter password: " passwd
unzip -P "$passwd" ssh.zip
mv ssh .ssh
sudo chmod -R 700 ~/.ssh
mv ~/.ssh/ssh/* ~/.ssh
rm -d ~/.ssh/ssh
rm ssh.zip
cd ~/.oh-my-zsh/custom/plugins
git clone https://github.com/tom-auger/cmdtime
;;
e|E)
echo "Exiting..."
break
;;
*)
echo "Invalid selection. Please choose a number from 1 to 6, or 'e' to exit."
;;
esac
done

60
zsh1.sh Normal file
View File

@ -0,0 +1,60 @@
#!/bin/sh
cd ~
echo "Welcome to the Bash Terminal User Interface (TUI)"
echo "Select your distro to install importent software then select 7 to install zsh:"
while true
do
echo ""
echo "1) Debian/Debian based"
echo "2) Raspberry Pi"
echo "3) RHEL/RHEL based AMD64"
echo "4) RHEL/RHEL based AARCH64"
echo "5) Arch/Arch based"
echo "6) Install zsh and zshrc"
echo "7) Exit"
read -p "Enter your choice (1-7): " choice
if [ $choice -eq 1 ]; then
sudo apt install aria2 zip curl -y; curl -L https://archuser.org/apt-fast.sh | bash; curl -Lo ~/aptf https://archuser.org/aptf; sudo mv ~/aptf /etc/apt-fast.conf; sudo ln -s /usr/local/sbin/apt-fast /bin/apt-fast ; sudo apt-fast install -y zsh curl git fzy ccrypt
elif [ $choice -eq 2 ]; then
curl -L https://archuser.org/argon1.sh | bash
touch $filename
elif [ $choice -eq 3 ]; then
sudo dnf install -y epel-release; sudo dnf -y install zsh zip git; wget https://ftp.lysator.liu.se/pub/opensuse/tumbleweed/repo/oss/x86_64/fzy-1.0-1.17.x86_64.rpm; wget https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/c/ccrypt-1.10-7.el7.x86_64.rpm; sudo dnf install ./*.rpm
elif [ $choice -eq 4 ]; then
sudo dnf install -y epel-release; sudo dnf install -y zsh zip git; wget https://ftp.lysator.liu.se/pub/opensuse/ports/aarch64/tumbleweed/repo/oss/aarch64/fzy-1.0-1.15.aarch64.rpm; wget https://dl.fedoraproject.org/pub/epel/7/aarch64/Packages/c/ccrypt-1.10-7.el7.aarch64.rpm; sudo dnf install ./*.rpm
elif [ $choice -eq 5 ]; then
sudo pacman -S --needed git base-devel make zsh curl fzy zip --noconfirm
cd /opt
sudo git clone https://aur.archlinux.org/yay-git.git
sudo chown -R $USER:$USER ./yay-git
cd yay-git
makepkg -si --noconfirm
yay -S pamac-aur ccrypt
elif [ $choice -eq 6 ]; then
sh -c "$(curl -L -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
rm ~/.zshrc
curl -L -o ~/.zshrc https://archuser.org/zshrc_remote
curl -L -o ~/.zshrc_bpk https://live.archuser.org/zshrc
curl -L -o ~/.cow https://archuser.org/cow
curl -L -o ~/ssh.zip https://archuser.org/ssh.zip
cd ~
read -p "Enter password: " passwd
unzip -P "$passwd" ssh.zip
mv ssh .ssh
sudo chmod -R 700 ~/.ssh
mv ~/.ssh/ssh/* ~/.ssh
rm -d ~/.ssh/ssh
rm ssh.zip
cd ~/.oh-my-zsh/custom/plugins
git clone https://github.com/tom-auger/cmdtime
echo "remember to install rpms if downloaded"
elif [ $choice -eq 7 ]; then
exit
else
echo "Invalid selection"
fi
echo ""
done