Giter Site home page Giter Site logo

dotfiles's Introduction

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>/dotfiles.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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.