-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
85 lines (72 loc) · 2.56 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#!/bin/bash
echo "Setting up development environment..."
###################
# Package Sources #
###################
echo "Adding package repositories..."
sudo add-apt-repository -y ppa:aos1/diff-so-fancy
sudo add-apt-repository -y ppa:neovim-ppa/stable
sudo add-apt-repository -y universe
sudo apt update
sudo apt install -y nala # Pretty
######################
# Package Installing #
######################
echo "Installing basic utilities..."
sudo nala install -y \
diff-so-fancy \
colordiff \
xclip \
libfuse2 \
ripgrep \
tig \
gpg \
exuberant-ctags
curl -LO https://github.com/ClementTsang/bottom/releases/download/0.10.2/bottom_0.10.2-1_amd64.deb
sudo dpkg -i bottom_0.10.2-1_amd64.deb
###################
# NPM packages
# ################
echo "Installing NPM packages..."
sudo npm install -g tldr
###################
# Neovim Install #
###################
echo "Installing Neovim..."
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
sudo rm -rf /opt/nvim
sudo mkdir -p /opt/nvim
sudo mv nvim.appimage /opt/nvim/nvim
sudo chmod u+x /opt/nvim/nvim
export PATH="$PATH:/opt/nvim"
###################
# Shell Setup #
###################
echo "Setting up shell environment..."
# Oh My Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# ZSH plugins
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.oh-my-zsh/plugins/zsh-autosuggestions
git clone https://github.com/softmoth/zsh-vim-mode.git ~/.oh-my-zsh/plugins/zsh-vim-mode
git clone https://github.com/sindresorhus/pure.git "$HOME/.zsh/pure"
# Additional shell tools
curl -sS https://webinstall.dev/zoxide | bash
curl -LSfs https://raw.githubusercontent.com/cantino/mcfly/master/ci/install.sh | sudo sh -s -- --git cantino/mcfly
# Eza
sudo mkdir -p /etc/apt/keyrings
wget -qO- https://raw.githubusercontent.com/eza-community/eza/main/deb.asc | sudo gpg --dearmor -o /etc/apt/keyrings/gierens.gpg
echo "deb [signed-by=/etc/apt/keyrings/gierens.gpg] http://deb.gierens.de stable main" | sudo tee /etc/apt/sources.list.d/gierens.list
sudo chmod 644 /etc/apt/keyrings/gierens.gpg /etc/apt/sources.list.d/gierens.list
sudo apt update
sudo apt install -y eza
###################
# Config Files #
###################
echo "Setting up configuration files..."
# Neovim config
cp -r ~/.dotfiles/nvim/ ~/.config/
# Shell config
ln -sf ~/.dotfiles/system/.zshrc ~/.zshrc
source ~/.zshrc
echo "Installation complete!"