-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·33 lines (27 loc) · 780 Bytes
/
install.sh
File metadata and controls
executable file
·33 lines (27 loc) · 780 Bytes
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
CURRENT_PATH=`pwd`
# Linking
rm -f $HOME/.vimrc
rm -f $HOME/.vim
ln -sf $CURRENT_PATH/vimrc $HOME/.vimrc
ln -sf $CURRENT_PATH $HOME/.vim
git clone https://github.com/gmarik/vundle.git $CURRENT_PATH/bundle/vundle
vim +BundleInstall! +qall
unamestr=`uname`
if [[ "$unamestr" == "Darwin" ]]; then
mkdir -p ~/Library/Vim/{swap,backup,undo}
else
mkdir -p ~/.local/share/vim/{swap,backup,undo}
fi
if [[ -f /etc/debian_version ]]; then
sudo apt-get install -y python-twisted
else
echo ""
echo "You are running outside a Debian/Ubuntu machine"
echo "and you need to install Python Twisted lib."
echo ""
echo "You can try it: pip install twisted"
echo "or visit: http://twistedmatrix.com/trac/wiki/Downloads#MacOSX"
echo ""
echo ""
fi
echo "Vim [OK]"