Created
          December 8, 2012 11:02 
        
      - 
      
- 
        Save sonots/4239842 to your computer and use it in GitHub Desktop. 
    Install .dotfiles
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/sh | |
| [[ -e ~/.dotfiles ]] || git clone [email protected]:sonots/.dotfiles.git ~/.dotfiles | |
| pushd ~/.dotfiles | |
| git submodule init | |
| git submodule update | |
| for i in `ls -a` | |
| do | |
| [ $i = "." ] && continue | |
| [ $i = ".." ] && continue | |
| [ $i = ".git" ] && continue | |
| [ $i = "README.md" ] && continue | |
| ln -s ~/.dotfiles/$i ~/ | |
| done | |
| vim -c ':BundleInstall!' -c ':q!' -c ':q!' | |
| if [ `uname` = "Darwin" ]; then | |
| pushd ~/.dotfiles/.vim/bundle/vimproc | |
| make -f make_mac.mak | |
| popd | |
| fi | |
| popd | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment