-
Notifications
You must be signed in to change notification settings - Fork 0
/
.setup
59 lines (55 loc) · 2.49 KB
/
.setup
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
54
55
56
57
58
59
. ~/.aliases/.bin/.countdown.function
. ~/ali-main/.aliases/.bin/.countdown.function
prompt () {
if ! [ -d ~/ali-main ]; then
wget https://github.com/sehzam/ali/archive/refs/heads/main.zip &&
unzip main.zip &&
rm main.zip
fi
echo "______________________________________________________" |grep -E "_"
echo "_If you want _________________________________________" |grep -E "_"
echo "______________________________ A L I _" |grep -E "|_|A L I"
echo "______ to UPDATE or REMOVE ? _ _" |grep -E "UPDATE|REMOVE|_"
echo "______________________________ Alias Listing System ?_" |grep -E "_"
echo "______________________________________________________" |grep -E "_"
read -p "UPDATE: ( Y/y ) | REMOVE: ( N/n ) ? : " name
echo "______________________________________________________" |grep -E "_"
if [ "$name" = "n" ] || [ "$name" = "N" ]; then
echo "REMOVING Alias Listing System A L I"
. ~/ali-main/.uninstall|grep -E ':|·|~|\.|-|__|<|>'
rm -f -r ~/ali-main/
bash
elif [ "$name" = "y" ] || [ "$name" = "Y" ]; then
echo "UPDATING Alias Listing System A L I"
. ~/ali-main/.uninstall|grep -E ':|·|~|\.|-|__|<|>'
. ~/ali-main/.install|grep -E ':|·|~|\.|-|__|<|>'
rm -f -r ~/ali-main/
pro () {
echo "______________________________________________________" |grep -E "_"
echo "_You need the the following SOFTWARE _________________" |grep -E "_|SOFTWARE"
echo "______________________________ INSTALLATION _" |grep -E "|_|INSTALLATION"
echo "_________ JQ and CURL ? ______ _" |grep -E "JQ|CURL|_"
echo "______________________________ Just install now ____?_" |grep -E "_"
echo "______________________________________________________" |grep -E "_"
read -p "YES: ( Y/y ) | NO : ( N/n ) ? : " answer
echo "______________________________________________________" |grep -E "_"
if [ "$answer" = "Y" ] || [ "$answer" = "y" ]; then
sudo apt-get install jq
sudo apt-get install curl
fi
}
sleep 3
# count 3
bash
fi
echo ______________________________________________________ |grep -E "_"
}
clear
if ! [ -d ~/.aliases ]; then
echo "INSTALLING Alias Listing System A L I"
. ~/ali-main/.install|grep -E ':|·|~|\.|-|__|<|>'
rm -f -r ~/ali-main/
bash
elif [ -d ~/.aliases ]; then
prompt
fi