-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapt-install.sh
executable file
·47 lines (37 loc) · 1.38 KB
/
apt-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
#!/bin/bash
# ppas
# neovim
sudo add-apt-repository ppa:neovim-ppa/unstable
#update distro before install
sudo apt-get update -y
sudo apt-get upgrade -y
### zsh
sudo apt-get install zsh -y
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# zsh-z
git clone https://github.com/agkozak/zsh-z ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-z
#tmux
sudo apt-get install tmux -y
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# powerline fonts
sudo apt-get install powerline fonts-powerline -y
# neovim
sudo apt install -y neovim python3-neovim xclip
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
#lsp
npm i -g pyright
#fonts
npm i -g @vscode/codicon
# tree-sitter
npm install -g tree-sitter-cli
# Change all editors to neovim
sudo update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 60
sudo update-alternatives --config vi
sudo update-alternatives --install /usr/bin/vim vim /usr/bin/nvim 60
sudo update-alternatives --config vim
sudo update-alternatives --install /usr/bin/editor editor /usr/bin/nvim 60
sudo update-alternatives --config editor
# Cleanup
sudo apt autoremove -y