Skip to content

rushi/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles

Rushi's OS X dotfiles.

Why is this a git repo?

To version and maintain the history of my dotfiles. It also serves as a backup and allows me to revert to older versions in case of errors

Installation

Notes:

  • You need to be an administrator (for sudo).
  • You need to have installed XCode Command Line Tools, which are available as a separate, optional (and much smaller) download from XCode.
bash -c "$(curl -fsSl https://raw.github.com/rushi/dotfiles/master/install.sh)"

The "init" step

These things will be installed, but only if they aren't already.

  • Homebrew
    • git
    • mercurial
    • tree
    • sl
    • lesspipe
    • nmap
    • git-extras
    • htop-osx
    • apple-gcc42 (via homebrew-dupes)
    • several other libraries

The ~/ "copy" step

Any file in the copy subdirectory will be copied into ~/. Any file that needs to be modified with personal information (like .gitconfig which contains an email address and private key) should be copied into ~/. Because the file you'll be editing is no longer in ~/.dotfiles, it's less likely to be accidentally committed into your public dotfiles repo.

The ~/ "link" step

Any file in the link subdirectory gets symbolically linked with ln -s into ~/. Edit these, and you change the file in the repo. Don't link files containing sensitive data, or you might accidentally commit that data!

Aliases and Functions

Add your aliases, functions, settings, etc into one of the files in the source subdirectory, or add a new file. They're all automatically sourced when a new shell is opened. Take a look, I have a lot of aliases and functions.

Scripts

In addition to the aforementioned dotfiles script, there are a few other bash scripts. This includes ack, which is a git submodule.

  • dotfiles - (re)initialize dotfiles. It might ask for your password (for sudo).
  • src - (re)source all files in source directory
  • Look through the bin subdirectory for a few more.

Inspiration

(and 10+ years of accumulated crap)

License

Copyright (c) 2012 "Cowboy" Ben Alman Licensed under the MIT license. http://benalman.com/about/license/

Extended for Personal use by Rushi Vishavadia. http://rushi.vishavadia.com/