-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·47 lines (40 loc) · 1.34 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
shopt -s expand_aliases
install_packages() {
## install basic tools, grouped line by line
sudo apt update && sudo apt upgrade -y
## add neovim ppa to get latest version
sudo add-apt-repository ppa:neovim-ppa/stable
sudo apt install -y ssh git curl neovim tmux tmuxinator docker.io lua5.1 gnome-tweaks
sudo apt install -y python3-pip python3-venv python3-tk
}
install_dotfiles() {
if [ ! -d "$HOME/.dotfiles" ]
then
git clone --bare https://github.com/VitoMinheere/dotfiles.git $HOME/.dotfiles
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
config config status.showUntrackedFiles no
config checkout
config remote set-url origin [email protected]:VitoMinheere/dotfiles.git
else
echo "dotfiles already installed"
fi
}
adduseranddir() { \
# Adds user `$name` with password $pass1.
dialog --infobox "Adding user \"$USER\"..." 4 50
groupadd -f docker
useradd -m --G docker -s /bin/bash "$USER" >/dev/null 2>&1 ||
mkdir -p /home/"$USER"/Developer
}
install_chrome() {
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome-stable_current_amd64.deb
}
install_snaps() {
sudo snap install --classic code
}
install_packages
install_dotfiles
adduseranddir
install_chrome
install_snaps