Rushi's OS X dotfiles.
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
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)"
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
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.
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!
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.
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.
- https://github.com/cowboy/dotfiles
- https://github.com/gf3/dotfiles
- https://github.com/mathiasbynens/dotfiles
(and 10+ years of accumulated crap)
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/