Skip to content
Newer
Older
100755 27 lines (23 sloc) 734 Bytes
54b1b39 @benburkert Add a bootstrap script.
benburkert authored Oct 18, 2010
1 for i in ~/.vim ~/.vimrc ~/.gvimrc; do [ -e $i ] && mv $i $i.old; done
2 git clone git://github.com/carlhuda/janus.git ~/.vim
3 cd ~/.vim
4 rake
3563d7f @nateklaiber merging with upstream
authored Nov 19, 2012
5 =======
3b86489 @kalbasit Bootstrap: Add error handling
kalbasit authored Nov 27, 2011
6 function die()
7 {
8 echo "${@}"
9 exit 1
10 }
11
a5150f1 @kalbasit Bootstrap: Add comments so the script would be clear and easy to unde…
kalbasit authored Nov 10, 2011
12 # Add <strong>.old</strong> to any existing Vim file in the home directory
ba1daba @kalbasit Bootstrap: Use $HOME instead of ~ so we can easily test it.
kalbasit authored Nov 13, 2011
13 for i in $HOME/.vim $HOME/.vimrc $HOME/.gvimrc; do
f5556fa @adrianrego check for .vim* symlinks
adrianrego authored Nov 10, 2011
14 if [[ ( -e $i ) || ( -h $i ) ]]; then
a5150f1 @kalbasit Bootstrap: Add comments so the script would be clear and easy to unde…
kalbasit authored Nov 10, 2011
15 echo "${i} has been renamed to ${i}.old"
3b86489 @kalbasit Bootstrap: Add error handling
kalbasit authored Nov 27, 2011
16 mv "${i}" "${i}.old" || die "Could not move ${i} to ${i}.old"
a5150f1 @kalbasit Bootstrap: Add comments so the script would be clear and easy to unde…
kalbasit authored Nov 10, 2011
17 fi
18 done
19
902f818 @kalbasit Janus: Go through all files and change all occurences of vimius to ja…
kalbasit authored Nov 19, 2011
20 # Clone Janus into .vim
9300a03 @kalbasit Lets stick with https
kalbasit authored Dec 27, 2011
21 git clone https://github.com/carlhuda/janus.git $HOME/.vim \
3b86489 @kalbasit Bootstrap: Add error handling
kalbasit authored Nov 27, 2011
22 || die "Could not clone the repository to ${HOME}/.vim"
a5150f1 @kalbasit Bootstrap: Add comments so the script would be clear and easy to unde…
kalbasit authored Nov 10, 2011
23
ba1daba @kalbasit Bootstrap: Use $HOME instead of ~ so we can easily test it.
kalbasit authored Nov 13, 2011
24 # Run rake inside .vim
3b86489 @kalbasit Bootstrap: Add error handling
kalbasit authored Nov 27, 2011
25 cd $HOME/.vim || die "Could not go into the ${HOME}/.vim"
26 rake || die "Rake failed."
Something went wrong with that request. Please try again.