This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.sh
66 lines (50 loc) · 1.8 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
set -e
echo "Installing awesome vim"
git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_awesome_vimrc.sh
cp .vimrc ~/.vim_runtime/my_configs.vim
echo "Setting up the aliases"
cp .bash_aliases ~/.bash_aliases
echo "Install fzf"
sudo apt install fzf
cp .fzf_bash ~/.fzf_bash
echo "Setup bashrc extras"
cat .bashrc_extras >> ~/.bashrc
git config --global user.email "[email protected]"
git config --global user.name "Nicu Reut"
echo "install ncdu"
sudo apt install ncdu
echo "Install ripgrep"
sudo apt install ripgrep
echo "Install httpie"
sudo apt install httpie
echo "Install docker"
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
## Add the repository to Apt sources:
echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo usermod -aG docker $USER
newgrp docker
sudo systemctl enable docker.service
sudo systemctl enable containerd.service
sudo apt install python3-pygments
sudo apt install net-tools
echo "Install tmux"
sudo apt install tmux
#clone plugin manager
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
cp .tmux.conf ~/.tmux.conf
echo "Setting up nix"
bash <(curl -sSfL https://nixos.org/nix/install)
sudo mkdir -p /etc/nix
sudo cp .nix.conf /etc/nix/nix.conf