Skip to content

Commit

Permalink
added an install that knows about vim
Browse files Browse the repository at this point in the history
  • Loading branch information
sontek committed May 9, 2011
1 parent 8578fa9 commit 94a77d7
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 14 deletions.
2 changes: 1 addition & 1 deletion _vim/bundle/fugitive
Submodule fugitive updated 1 files
+3 −3 plugin/fugitive.vim
35 changes: 22 additions & 13 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@
#!/usr/bin/env bash
for i in _*
do
source="${PWD}/$i"
target="${HOME}/${i/_/.}"
# if [ -e "${target}" ]; then
# echo "${target} already exists"
# else
ln -sf ${source} ${target}
# fi
done
function link_file {
source="${PWD}/$1"
target="${HOME}/${1/_/.}"

if [ -e "${target}" ]; then
mv $target $target.bak
fi

ln -sf ${source} ${target}
}

if [ "$1" = "vim" ]; then
for i in _vim*
do
link_file $i
done
else
for i in _*
do
link_file $i
done
fi

git submodule sync
git submodule init
Expand All @@ -20,6 +32,3 @@ git submodule foreach git submodule update
# setup command-t
cd _vim/bundle/command-t
rake make

#cd _vim/ropevim/
#./install.sh

0 comments on commit 94a77d7

Please sign in to comment.