Skip to content

Latest commit

 

History

History
73 lines (43 loc) · 2.07 KB

README.md

File metadata and controls

73 lines (43 loc) · 2.07 KB

How to install on a new computer

  1. Fork this project into your own Github account

  2. Clone on your machine:

     git clone https://github.com/<YOUR_GITHUB_USERNAME>/bin.git ~/bin
    
  3. Make sure the .bashrc file is loaded every time you open the Terminal:

     echo "if [ -f ~/.bashrc ]; then
       source ~/.bashrc
     fi" > ~/.bash_profile
    
  4. Load environment variables, aliases and shell settings:

     ln -sf ~/bin/dotfiles/bashrc     ~/.bashrc
    
  5. Enter your Github credentials in gitconfig, then load the git settings:

     ln -sf ~/bin/dotfiles/git/config  ~/.gitconfig
    
  6. Load git ignore settings:

     ln -sf ~/bin/dotfiles/git/ignore  ~/.gitignore
    
  7. Load git global hooks:

     mkdir -p ~/.git_template/hooks/
     ln -sf ~/bin/dotfiles/git/pre-commit  ~/.git_template/hooks/
    
  8. Load rubygems settings:

     ln -sf ~/bin/dotfiles/gemrc      ~/.gemrc
    
  9. Load pry settings for Rails:

     ln -sf ~/bin/dotfiles/pryrc      ~/.pryrc
    
  10. Load SSH settings:

     mkdir -p ~/.ssh
     ln -sf ~/bin/dotfiles/ssh/config ~/.ssh/config
    
  11. Load git prompt support:

    source ~/.bashrc
    vcprompt-install
    
  12. Load hub support (optional):

    hub-install
    
  13. Add custom bundles to Textmate 1 (optional):

    ln -sf ~/bin/dotfiles/textmate ~/Library/Application\ Support/TextMate/Bundles/claudiob.tmbundle
    
  14. Don't track further changes to your private settings:

    cd ~/bin
    git update-index --assume-unchanged ~/bin/dotfiles/bash/env.secret
    git update-index --assume-unchanged ~/bin/dotfiles/ssh/config
    
  15. Go and edit your aliases, configuration, settings, then push to your Github account!

Other tips