Browse files

Splitted stuff a bit

  • Loading branch information...
1 parent ff7266d commit b5c76cb3b7be98a4d7c5ef3cba5def5eb7df5042 @kitofr committed Apr 17, 2012
Showing with 17 additions and 9 deletions.
  1. +17 −9 rakefile
@@ -1,20 +1,28 @@
#TODO switch mklink/ln betwen environments
desc "Removes old .bashrc/.vimrc and .vim files/folders in favour of links towards this folder"
-task :install do
+task :install => [:bash_rc,:vim,:fonts]
+def pwd
+ @pwd = `pwd` unless @pwd
+task :bash_rc do
sh "rm -f ~/.bashrc"
- sh "ln -s ~/dotfiles/.bashrc ~/.bashrc"
+ sh "ln -s #{pwd}/.bashrc ~/.bashrc"
sh "rm -f ~/.inputrc"
- sh "ln -s ~/dotfiles/.inputrc ~/.inputrc"
+ sh "ln -s #{pwd}/.inputrc ~/.inputrc"
- #vim
+task :vim do
sh "rm -rf ~/.*vim*"
- sh "ln -s ~/dotfiles/vim/vimrc ~/.vimrc"
- sh "ln -s ~/dotfiles/vim ~/.vim"
- sh "sudo ln -s ~/dotfiles/git/git-completion.bash /etc/bash_completion.d/git-completion"
+ sh "ln -s #{pwd}/vim/vimrc ~/.vimrc"
+ sh "ln -s #{pwd}/vim ~/.vim"
+ sh "sudo ln -s #{pwd}/git/git-completion.bash /etc/bash_completion.d/git-completion"
- #fonts
+task :fonts do
sh "rm -rf ~/.fonts"
- sh "sudo ln -s ~/dotfiles/fonts ~/.fonts"
+ sh "sudo ln -s #{pwd}/fonts ~/.fonts"
namespace :irb do

0 comments on commit b5c76cb

Please sign in to comment.