-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·42 lines (29 loc) · 1.06 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
#!/bin/bash
sudo apt update
# Install ZSH
sudo apt install -y zsh
# Install zplug
curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh
# Copy .zshrc
cp .zshrc ~/.zshrc
# Install Neovim
sudo apt install -y software-properties-common
sudo apt install -y neovim
# Install Python modules for Neovim
sudo apt install -y python3-dev python3-pip
# Update editor to Neovim
sudo update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 60
sudo update-alternatives --install /usr/bin/vim vim /usr/bin/nvim 60
sudo update-alternatives --install /usr/bin/editor editor /usr/bin/nvim 60
# Install vim-plug for Neovim
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# Copy config directory
cp -r .config ~/
# Copy tmux configuration file
cp .tmux.conf ~/
# Install Python modules
sudo python3 -m pip install -U pip setuptools neovim
echo "---------------------------"
echo "RUN THE FOLLOWING COMMAND:"
echo "chsh -s \$(which zsh)"