-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·61 lines (41 loc) · 1.43 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#! /bin/bash
# exit when something fails
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $HOME
if [[ ! -f .gitconfig ]]; then cp $DIR/data/git/.gitconfig ./; fi
sudo apt update -y
sudo apt upgrade -y
sudo apt install git wget curl xinput xclip -y
git config --global credential.helper store
git config --global pull.rebase false
function checkinstall {
install_script=$DIR/$2
if [ ! -e $1 ]; then
shift
shift
echo "running $install_script $@"
bash $install_script $@
else
shift
echo "skipping $@, already installed"
fi
}
$DIR/setup-sleep.sh
checkinstall /usr/local/share/fonts/FiraCode-Regular.ttf install-firacode.sh
checkinstall /usr/local/bin/alacritty install-alacritty.sh
checkinstall /usr/bin/zsh install-zsh.sh
checkinstall ./suckless install-dwm.sh
checkinstall /usr/local/bin/python3.8 install-python.sh "3.8.7"
checkinstall /usr/local/bin/micro install-micro.sh
checkinstall /usr/bin/code install-vscode.sh
checkinstall /usr/bin/chrome install-chrome.sh
checkinstall /usr/local/bin/firefox install-firefox.sh
checkinstall /usr/local/bin/pycharm install-jetbrains.sh PCP pycharm
checkinstall /usr/local/bin/clion install-jetbrains.sh CL clion
checkinstall /usr/local/bin/webstorm install-jetbrains.sh WS webstorm
if [[ ! $(groups) == *"sudo"* ]]; then
# add user to sudo group
sudo /sbin/adduser $USER sudo
echo "User $USER might have to logout&login again to be able to use sudo"
fi