-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprovision.sh
More file actions
78 lines (68 loc) · 1.96 KB
/
provision.sh
File metadata and controls
78 lines (68 loc) · 1.96 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
76
77
78
#!/bin/bash
# Fail out if a step fails.
set -euo pipefail
sudo apt update
sudo apt install -y --fix-missing \
aspell \
bash-completion \
checkinstall \
clang-tidy \
universal-ctags \
curl \
fd-find \
feh \
fish \
git \
htop \
imagemagick \
luarocks \
man \
pipx \
python3-venv \
stow \
sudo \
tig \
tldr \
tmux \
trash-cli \
tree \
ranger \
vim \
vim-gtk3 \
x11-xserver-utils \
xclip \
wget \
yamllint
pipx ensurepath
pipx install ast-grep-cli
pipx install pynvim
# install rust
rustup self uninstall || true
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
. "$HOME/.cargo/env"
cargo install ripgrep --features pcre2
# Install fzf.
~/.fzf/uninstall || true
rm -rf ~/.fzf
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install --all --no-update-rc
# Install lazygit.
sudo rm -rf /usr/local/bin/lazygit
curl -Lo /tmp/lazygit_0.57.0_Linux_x86_64.tar.gz https://github.com/jesseduffield/lazygit/releases/download/v0.57.0/lazygit_0.57.0_Linux_x86_64.tar.gz
tar -C /tmp -xf /tmp/lazygit_0.57.0_Linux_x86_64.tar.gz lazygit
sudo install /tmp/lazygit /usr/local/bin/lazygit
rm /tmp/lazygit_0.57.0_Linux_x86_64.tar.gz /tmp/lazygit
# Install nvim
curl -LO https://github.com/neovim/neovim/releases/download/v0.12.1/nvim-linux-x86_64.tar.gz
sudo rm -rf /opt/nvim && sudo tar -C /opt -xzf nvim-linux-x86_64.tar.gz && rm -rf nvim-linux-x86_64.tar.gz
# Install LazyVim
rm -rf ~/.config/nvim
rm -rf ~/.local/share/nvim
rm -rf ~/.local/state/nvim
rm -rf ~/.cache/nvim
git clone https://github.com/dbrandonk/bk-lazyvim-config.git ~/.config/nvim
rm -rf ~/.config/nvim/.git
# Too lazy to figure out how to do this right.
# Also probably shooting myself in the foot for not just enabling LazyExtras lang.python.
# However I was having issues with that in ubuntu 22.04.
export PATH="$PATH:/opt/nvim-linux-x86_64/bin" && nvim --headless -c ":Lazy load mason.nvim" -c ':MasonInstall jedi-language-server' -c ':qall'