Skip to content

Commit

Permalink
modify
Browse files Browse the repository at this point in the history
  • Loading branch information
MinmingQian committed Jan 4, 2013
1 parent 1774fad commit e10ade3
Show file tree
Hide file tree
Showing 135 changed files with 275 additions and 60,927 deletions.
23 changes: 23 additions & 0 deletions auto-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/sh
VIMHOME=~/.vim

warn(){
echo "$1" >&2
}

die(){
warn "$1"
exit 1
}

[ -e "$VIMHOME/vimrc" ] && die "$VIMHOME/vimrc already exists."
[ -e "~/.vim" ] && die "~/.vim already exists."
[ -e "~/.vimrc" ] && die "~/.vimrc already exists."

git clone git://github.com/fofore/vimrc.git "$VIMHOME"
cd "$VIMHOME"
git submodule update --init

./install-vimrc.sh

echo "fofore's vimrc is installed."
22 changes: 22 additions & 0 deletions auto-install.sh~
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/sh
VIMHOME=~/.vim

warn(){
echo "$1" >&2
}

die(){
warn "$1"
exit 1
}

[ -e "$VIMHOME/vimrc" ] && die "$VIMHOME/vimrc already exists."
[ -e "~/.vim" ] && die "~/.vim already exists."
[ -e "~/.vimrc" ] && die "~/.vimrc already exists."

git clone git://github.com/fofore/vimrc.git "$VIMHOME"
cd "$VIMHOME"
git submodule update --init

./install-vimrc.sh

Loading

0 comments on commit e10ade3

Please sign in to comment.