This commit is contained in:
firebadnofire 2024-04-15 13:22:24 +00:00
parent ef74412fa7
commit 829e19c505
Signed by: firebadnofire
GPG Key ID: EF6539F1FA16DEB7
3 changed files with 24 additions and 70 deletions

View File

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

33
zsh.sh
View File

@ -1,7 +1,7 @@
#!/bin/bash
MAINPACKS="aria2 zip curl zsh git fzy unzip neofetch sudo"
MAINPKGS="aria2 zip curl zsh git unzip neofetch sudo"
MAINPKGSF="$MAINPKGS fzy"
while true; do
# Display the menu
echo "Menu:"
@ -19,32 +19,46 @@ while true; do
case $choice in
1)
echo "You chose Debian"
sudo apt install -y "$MAINPACKS"
echo "installing packages"
sudo apt install -y "$MAINPKGSF"
echo "installing apt-fast"
bash -c "$(curl -sL https://git.io/vokNn)"
sudo curl -o /etc/apt-fast.conf https://archuser.org/aptf
;;
2)
echo "You chose Arch"
echo "installing packages"
sudo pacman --noconfirm -S "$MAINPKGSF"
echo "installing yay and pamac"
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 --noconfirm -s "pamac-aur"
;;
3)
echo "You chose RHEL"
sudo dnf install -y "$MAINPACKS"
echo "installing packages"
sudo dnf install -y "$MAINPACKS https://ftp.lysator.liu.se/pub/opensuse/distribution/leap/15.5/repo/oss/x86_64/fzy-0.9-bp155.2.10.x86_64.rpm epel-release"
;;
4)
echo "You chose Raspberry Pi"
curl https://download.argon40.com/argon1.sh | bash
echo "installing argon-one case script"
curl https://download.argon40.com/argon1.sh | bash
echo "Run distro configs"
;;
5)
echo "You chose Install Zshrc"
echo "installing Oh-My-Zsh"
sh -c "$(curl -L -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
echo "installing zshrc and zshrc_bpk"
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
echo "deploing keys:"
curl -L -o ~/ssh.zip https://archuser.org/ssh.zip
cd ~
read -p "Enter password: " passwd
unzip -P "$passwd" ssh.zip
@ -53,7 +67,8 @@ while true; do
mv ~/.ssh/ssh/* ~/.ssh
rm -d ~/.ssh/ssh
rm ssh.zip
cd ~/.oh-my-zsh/custom/plugins
echo "deploying plugins"
cd ~/.oh-my-zsh/custom/plugins
git clone https://github.com/tom-auger/cmdtime
;;

60
zsh1.sh
View File

@ -1,60 +0,0 @@
#!/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