-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
executable file
·39 lines (34 loc) · 1.08 KB
/
install.sh
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
#!/bin/sh
release=`cat /etc/os-release | grep "^ID=" | sed "s/^ID=//"`
# update the software's version
echo "Checking and installing the system update"
if echo ${release} | egrep -qi "Fedora|CentOS|RHEL" ; then
# package manager is set to dnf
sudo dnf udpate && sudo dnf upgrade -y
PKM="sudo dnf install";
elif echo ${release} | egrep -qi "Ubuntu|Mint|Debian"; then
# package manager is set to apt
sudo apt udpate && sudo apt upgrade -y
PKM="sudo apt install";
elif echo ${release} | egrep -qi "manjaro"; then
# manjaro support
./src/is_yay.sh
yay -Syyu
PKM="yay -S --needed"
else
echo "Non Support System, Please Write raise an issure to github.";
echo "Install Abort";
exit 1;
fi
echo " "
echo "Installing zsh tmux vim htop clang python3 virtualenv curl wget unzip git"
${PKM} zsh tmux vim htop python python3 curl wget unzip git
# use pip to install venv
sudo pip3 install virtualenv pylint > /dev/null
# set zsh as defualt shell
echo " "
echo "Set zsh as defualt shell"
chsh -s `which zsh`
# install all the concurrent jobs
sh src/installs/index.sh
vim congrate.txt