-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
46 lines (34 loc) · 970 Bytes
/
setup.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
echo "Welcome! Let's start setting up the system. It could take more than 10 minutes, be patient"
echo "Let's start with the Git setup. Set the git username: "
read git_config_username
git config --global user.name "$git_config_username"
echo "Set the git email: "
read git_config_email
git config --global user.email "$git_config_email"
echo "Update the system"
cd ~ && sudo apt update && sudo apt upgrade -y
echo "Install the basic packages"
sudo apt install -y \
build-essential \
curl \
software-properties-common \
unzip \
wget \
zip \
stow \
zsh \
tmux \
fzf \
zoxide
echo "Set zsh as the default shell"
chs -s $(which zsh)
echo "Setup gnu-stow"
stow --adopt .
source ~/.zshrc
# echo 'Installing NodeJS LTS'
# nvm --version
# nvm install --lts
# nvm current
echo "Bumping the max file watchers"
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
echo "All setup, enjoy!"