-
Notifications
You must be signed in to change notification settings - Fork 1
/
vimux.sh
executable file
·41 lines (29 loc) · 955 Bytes
/
vimux.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
unameOut="$(uname -s)"
case "${unameOut}" in
Linux*) machine=Linux;;
Darwin*) machine=Mac;;
*) machine="UNKNOWN:${unameOut}"
esac
echo "Backing up ~/.vimrc to ~/.vimrc.bak"
mv ~/.vimrc ~/.vimrc.bak
echo "Backing up ~/.tmux.conf to ~/.tmux.conf.bak"
mv ~/.tmux.conf ~/.tmux.conf.bak
echo "Backing up ~/.vim to ~/.vim.bak"
mv ~/.vim ~/.vim.bak
mkdir -p ~/.vim/pack/plugins/start
mkdir ~/.vim/undos
# Install color schemes
# Install PaperColor
mkdir -p ~/.vim/colors
curl -o ~/.vim/colors/PaperColor.vim https://raw.githubusercontent.com/NLKNguyen/papercolor-theme/master/colors/PaperColor.vim
# Install packer
git clone --depth 1 https://github.com/wbthomason/packer.nvim ~/.local/share/nvim/site/pack/packer/start/packer.nvim
cp ./.vimrc ~/
cp ./.tmux.conf ~/
cp ./.clipper.json ~/
if [[ $machine == "Linux" ]]; then
cp -r ./.config/* ~/.config
fi
cp -r ./.cargo/* ~/.cargo
nvim -c ":PackerInstall"