-
Notifications
You must be signed in to change notification settings - Fork 10
/
vim-setup.sh
executable file
·22 lines (18 loc) · 1.46 KB
/
vim-setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# Copy vim files (or better symlink to make updates)
cp .vimrc ~/
cp .vimrc.bundles ~/
cp -a .vim ~/
# Create to override vim default locations
mkdir ~/.vim/backups
mkdir ~/.vim/swaps
mkdir ~/.vim/undos
# Get the vim-plug plugin
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# Install Plugins
vim +PluginInstall +qall
# Get Fonts (Asume MacOS supported)
[ -d ~/Library/Fonts ] && cd ~/Library/Fonts && { curl -L -o 'Meslo LG S Regular Nerd Font Complete.ttf' 'https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/Meslo/S/Regular/complete/Meslo%20LG%20S%20Regular%20Nerd%20Font%20Complete.ttf?raw=true'; cd -; }
[ -d ~/Library/Fonts ] && cd ~/Library/Fonts && { curl -L -o 'Meslo LG S Bold Nerd Font Complete.ttf' 'https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/Meslo/S/Bold/complete/Meslo%20LG%20S%20Bold%20Nerd%20Font%20Complete.ttf'; cd -; }
[ -d ~/Library/Fonts ] && cd ~/Library/Fonts && { curl -L -o 'Meslo LG S Italic Nerd Font Complete.ttf' 'https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/Meslo/S/Italic/complete/Meslo%20LG%20S%20Italic%20Nerd%20Font%20Complete.ttf'; cd -; }
[ -d ~/Library/Fonts ] && cd ~/Library/Fonts && { curl -L -o 'Meslo LG S Bold Italic Nerd Font Complete.ttf' 'https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/Meslo/S/Bold-Italic/complete/Meslo%20LG%20S%20Bold%20Italic%20Nerd%20Font%20Complete.ttf'; cd -; }