Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Pimp My Dev Box

Pimp My Dev Box

Víctor Martínez

August 20, 2012
Tweet

More Decks by Víctor Martínez

Other Decks in Programming

Transcript

  1. First of all, get a dark theme Your eyes will

    thank you at the end of the day (My own) https://github.com/knoopx/knoopx.terminal Solarized http://ethanschoonover.com/solarized
  2. Replace Apple's bundled BSD* tools with the GNU ones $

    brew install findutils ack grep bash gcc (...)! they are far more powerful (*) Only some of them are really BSD, but Apple usually ships dinosaur-aged GNU software with their OS.
  3. Install some other cool software brew install wget colordiff rmtrash

    unrar (...) • wget: downloads files from the internets • unrar: unpacks files from the internets • colordiff: get colorful differences between files • rmtrash: send files to OSX trash instead of deleting them alias diff=colordiff alias find=gfind alias rm=rmtrash ...and make them your defaults
  4. I choose ZSH, what do I get? • colors, rainbows

    and unicorns • unified history between tabs • tab tab tab! out of the box autocompletions for almost everything • keyboard navigable completion lists • powerful globbing and expansions • syntax highlighting • plays well with floating point calculations • (many more! STFW!) ZSH is essentially an enhanced experience of everything you already know from BASH $ brew install zsh
  5. Don't fall into the configuration madness Use an existing community-maintained

    package of zsh configurations: • oh-my-zsh • zsh-lovers • zsh-users
  6. Send pull-reqs from the terminal $ git co awesome-feature $

    git pull-req # $EDITOR opens asking you for PR title/msg $ subl ~/bin/git-pull-req
  7. Do the house cleaning once a week Prune stale remote-tracking

    branches Delete already merged branches Do everything at once $ git remote prune origin $ git branch -d `git branch --merged | grep -v \* | xargs` $ git branch-cleanup $ cat ~/bin/git-branch-cleanup git remote prune origin && git branch -d `git branch --merged | grep -v \* | xargs`
  8. Use GitX Don't be lame, do everything else from the

    command line. Mastering GIT will make unstoppable. $ git rebase -i HEAD~5 $ git reset --hard origin/master $ git merge --no-ff awesome-feature $ git checkout -b features/new-one ✕ ✔
  9. or better yet, use Quicksilver Use an application launcher Alternatives:

    Spotlight, Alfred.app, Launchbar http://qsapp.com/