-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdebian-setup.sh
More file actions
75 lines (58 loc) · 2.42 KB
/
debian-setup.sh
File metadata and controls
75 lines (58 loc) · 2.42 KB
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
66
67
68
69
70
71
72
73
74
75
#!/bin/bash
# docker
for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg; done
## Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
## Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
$(. /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 -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo usermod -aG docker "$USER"
# neovim
sudo wget https://github.com/neovim/neovim/releases/download/v0.11.5/nvim-linux-arm64.appimage -O /usr/local/bin/nvim
sudo chmod +x /usr/local/bin/nvim
# btop
wget https://github.com/aristocratos/btop/releases/download/v1.4.5/btop-aarch64-linux-musl.tbz
tar -xvjf btop-aarch64-linux-musl.tbz
cd btop && sudo make install
rm -rf btop btop-aarch64-linux-musl.tbz
# apt packages
sudo apt install -y \
bat \
fastfetch \
node \
npm \
tmux \
zsh
# git
git config --global user.email "whyredfire@gmail.com"
git config --global user.name "Karan Parashar"
git config --global alias.cp 'cherry-pick'
git config --global alias.c 'commit'
git config --global alias.f 'fetch'
git config --global alias.m 'merge'
git config --global alias.rb 'rebase'
git config --global alias.rs 'reset'
git config --global alias.ck 'checkout'
git config --global commit.verbose true
git config --global core.editor 'nvim'
# tmux
git clone https://github.com/tmux-plugins/tpm --depth=1 ~/.tmux/plugins/tpm
# oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
# dotfiles
git clone https://github.com/whyredfire/dotfiles dotfiles
cp -r dotfiles/.config/* ~/.config/
rm -rf dotfiles
ZSH_PATH=~/.oh-my-zsh/custom/plugins
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_PATH/zsh-autosuggestions --depth=1
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_PATH/zsh-syntax-highlighting --depth=1
git clone https://github.com/zsh-users/zsh-completions.git $ZSH_PATH/zsh-completions --depth=1
chsh -s $(which zsh)