My dot files (in need of updating to my latest)
Shell VimL JavaScript
Pull request Compare This branch is 56 commits ahead, 285 commits behind paulirish:master.
Latest commit 5625d59 Dec 10, 2015 @addyosmani Merge pull request #5 from grgur/patch-1
Duplicate `alias g` (git). Moved `alias v` up
Permalink
Failed to load latest commit information.
.vim Include .vim directory and subdirectories Jan 2, 2012
sublime/build-files Add commonly used npm deps to deps script Apr 20, 2014
utils Finally add github-email by Sindre Apr 20, 2014
.ackrc ack configuration courtesy of @gf3. thx Sep 9, 2012
.aliases Duplicate `alias g` (git). Moved `alias v` up Jul 27, 2015
.bash_profile
.bash_prompt whitespace Sep 4, 2012
.bashrc iterm title bar attempt #2 Jan 24, 2012
.brew kill mathias terminal edits. Sep 10, 2012
.exports Add some more commands to `$HISTIGNORE`. Nov 18, 2011
.functions Improve gi/gp/yi based on feedback from alrra Apr 20, 2014
.gitattributes
.gitconfig customizing gitconfig Sep 17, 2012
.gitignore updating gitignore with .pyc Sep 9, 2012
.inputrc Removing duplicate `set mark-symlinked-directories on` settings. Nov 17, 2011
.osx Update .osx defaults to account for latest advice. Apr 20, 2014
.vimrc nerfing .vimrc's setrelativenumber and undodir options in case of old… Jan 27, 2012
Caskfile Add in QuickLook plugins Apr 20, 2014
bootstrap.sh Add in bootstrap.sh from Mathias Apr 20, 2014
install-deps.sh Add commonly used npm deps to deps script Apr 20, 2014
readme.md Minor readme tweaks. Oct 23, 2012
sync.sh =) Sep 12, 2012

readme.md

Addy's dotfiles.

This repo contains my personal dotfiles and are heavily based on paul and mathias's.

Some differences

  • Browserstack shortcuts which will launch the service and automatically load up a specific OS/Browser pair with your URL. e.g win7ie8 "http://google.com", ipad3 "http://google.com", ipad3ios6 "http://google.com",androidnexus "http://google.com" etc. If you would prefer to work locally similarly use ipad3 "http://localhost:3000"
  • Dropbox via the command-line support dropbox upload {localFile} {remoteFile}, dropbox download {remoteFile} {localFile}, dropbox list etc.
  • Browser and npm aliases e.g chrome, safari, opera, firefox, chromium and others.
  • Launch all browsers with a specific URL browsers "http://google.com"
  • My Sublime Text build files (Grunt, Yeoman, r.js, SASS, Less and a few others included)
  • @cowboy's GitHub Pull Request Helper

install the neccessary apps

My basic setup is captured in install-deps.sh which adds homebrew, z, nave, etc.

private config

Toss it into a file called .extra which you do not commit to this repo and just keep in your ~/

I do something nice with my PATH there:

# PATH like a bawss
      PATH=/opt/local/bin
PATH=$PATH:/opt/local/sbin
PATH=$PATH:/bin
PATH=$PATH:~/.rvm/bin
PATH=$PATH:~/code/git-friendly
# ...

export PATH

Syntax highlighting

…is really important. even for these files.

add the below to this file: ~/Library/Application Support/Sublime Text 2/Packages/ShellScript/Shell-Unix-Generic.tmLanguage

<string>.aliases</string>
<string>.bash_profile</string>
<string>.bash_prompt</string>
<string>.bashrc</string>
<string>.brew</string>
<string>.exports</string>
<string>.functions</string>
<string>.git</string>
<string>.gitattributes</string>
<string>.gitconfig</string>
<string>.gitignore</string>
<string>.inputrc</string>
<string>.osx</string>
<string>.vim</string>
<string>.vimrc</string>

Sensible OS X defaults

When setting up a new Mac, you may want to set some sensible OS X defaults:

./.osx

Similar projects

I recommend getting a .jshintrc and .editorconfig defined for all your projects.

overview of files

Automatic config

  • .ackrc - for ack (better than grep)
  • .vimrc, .vim - vim config, obv.

shell environement

  • .aliases
  • .bash_profile
  • .bash_prompt
  • .bashrc
  • .exports
  • .functions
  • .extra - not included, explained above

manual run

  • install-deps.sh - random apps i need installed
  • .osx - run on a fresh osx machine
  • .brew - homebrew intialization

git, brah

  • .git
  • .gitattributes
  • .gitconfig
  • .gitignore

  • .inputrc - config for bash readline

Installation

git clone https://github.com/addyosmani/dotfiles.git && cd dotfiles && ./sync.sh

To update later on, just run the sync again.