-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·36 lines (31 loc) · 1 KB
/
install.sh
File metadata and controls
executable file
·36 lines (31 loc) · 1 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
#!/bin/bash
# Make links for .vimrc and .gvimrc.
rm -f $HOME/.vimrc $HOME/.gvimrc $HOME/.ideavimrc
ln -s $HOME/.vim/vimrc $HOME/.vimrc
ln -s $HOME/.vim/gvimrc $HOME/.gvimrc
ln -s $HOME/.vim/ideavimrc $HOME/.ideavimrc
# Install Vundle.
rm -rf $HOME/.vim/bundle/
git clone https://github.com/VundleVim/Vundle.vim.git $HOME/.vim/bundle/Vundle.vim
# Install plugins.
vim +PluginInstall +qall
# Install custom fonts.
if [ "$(uname)" == "Linux" ]; then
echo "Installing custom fonts to $HOME/.fonts ..."
if [ ! -d $HOME/.fonts ]; then
mkdir -p $HOME/.fonts
fi
cp $HOME/.vim/fonts/*/*.ttf $HOME/.fonts
# Update font cache
fc-cache -vf $HOME/.fonts > /dev/null
# OS X
elif [ "$(uname)" == "Darwin" ]; then
echo "Installing custom fonts to $HOME/Library/Fonts ..."
if [ ! -d $HOME/Library/Fonts ]; then
mkdir -p $HOME/Library/Fonts
fi
cp $HOME/.vim/fonts/*/*.ttf $HOME/Library/Fonts
else
echo "Not running Linux or OS X, so not installing custom fonts."
fi
echo "Finished installing vim configuration."