Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Not using janus bootstrap as it creates simlinks again and again.. us…

…e selvakn's vim_dot_files bootstrap once, and then just rake
  • Loading branch information...
commit e76f05ccb8c97afdbb25eb275c0539b2f3883b49 1 parent c325ec6
@selvakn authored
Showing with 9 additions and 4 deletions.
  1. +3 −0  .gitmodules
  2. +4 −3 Rakefile
  3. +1 −1  bootstrap.sh
  4. +1 −0  janus_vim
View
3  .gitmodules
@@ -7,3 +7,6 @@
[submodule "janus/vim-textobj-rubyblock"]
path = janus/vim-textobj-rubyblock
url = https://github.com/nelstrom/vim-textobj-rubyblock.git
+[submodule "janus_vim"]
+ path = janus_vim
+ url = https://github.com/carlhuda/janus
View
7 Rakefile
@@ -1,10 +1,11 @@
-def ln_nfs(dir)
+def ln_nfs(dir, dot_file = dir)
pwd = `pwd`.strip
- `ln -nfs #{pwd}/#{dir} ~/.#{dir}`
+ `ln -nfs #{pwd}/#{dir} ~/.#{dot_file}`
end
def bootstrap_janus
- `curl -Lo- http://bit.ly/janus-bootstrap | bash`
+ ln_nfs("janus_vim", "vim")
+ `cd ~/.vim && rake`
end
def setup_customizations
View
2  bootstrap.sh
@@ -4,7 +4,7 @@ function die()
exit 1
}
-for i in $HOME/.vim_selvakn $HOME/.janus $HOME/.gvimrc.after; do
+for i in $HOME/.vim $HOME/.vimrc $HOME/.gvimrc $HOME/.vim_selvakn $HOME/.janus $HOME/.gvimrc.after; do
if [[ ( -e $i ) || ( -h $i ) ]]; then
echo "${i} has been renamed to ${i}.old"
mv "${i}" "${i}.old" || die "Could not move ${i} to ${i}.old"
1  janus_vim
@@ -0,0 +1 @@
+Subproject commit b69c9830ba2391af4a3d2e5806cb502e0f8e108e
Please sign in to comment.
Something went wrong with that request. Please try again.