-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·54 lines (44 loc) · 1.42 KB
/
setup.sh
File metadata and controls
executable file
·54 lines (44 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
set -e
banner() {
echo \
"
▄ ████▄ ▄▄▄▄▀ ██ █▄▄▄▄ █ █▀ ▄ █ ▄█ ▄▄▄▄▀
█ █ █ ▀▀▀ █ █ █ █ ▄▀ █▄█ █ █ ██ ▀▀▀ █
██ █ █ █ █ █▄▄█ █▀▀▌ █▀▄ ██▀▀█ ██ █
█ █ █ ▀████ █ █ █ █ █ █ █ █ █ ▐█ █
█ █ █ ▀ █ █ █ █ ▐ ▀
█ ██ █ ▀ ▀ ▀
▀
" ;
}
banner
install_yay() {
sudo pacman -S --needed git base-devel
git clone https://aur.archlinux.org/yay-bin.git
cd yay-bin
makepkg -si
if yay -V > /dev/null ; then
echo "::yay is installed Cleaning up ..."
cd ..
rm -rf yay-bin
echo "::Finished"
fi
}
if ! cat /etc/os-release | grep -q archlinux; then
echo "this script was made to be run on archlinux only"
exit 1
fi
if ! pacman -Q gum > /dev/null ; then
read -p "Install gum? (Y/n)" gumstatus
if [[ "$gumstatus" == "y" ]] || [[ "$gumstatus" == "Y" ]] || [[ "$gumstatus" == "" ]]; then
sudo pacman -S gum
else
echo "gum not installed"
exit 1
fi
fi
if ! command -v yay > /dev/null; then
gum confirm "Install yay AUR helper?" && install_yay
fi
gum confirm "continue" && nvim ~/setup.sh