So, I just bought my first Mac, and decided to wrote this in order to help others =)
As a developer, the 3 apps I use most: Terminal, Text Editor and Music Player. So, in the mac-brave-new-world, I particularly use, in order: The default Terminal.app, SublimeText2 and iTunes.
SublimeText has his own tips, and I won't write about that. The web is already full of them. Go to the wild-web and find the best for you.
I will focus in terminal tools and other things. Also, I have a jocke about that:
A man who calls himself as a developer says: “I'm a developer, I don't want to write commands, I just want to use some UI to do what I want to”.
Yep, this is a joke. (before it was sad)
Well, let's stop this and go to what really matter.
Install XCode command line tools. You will always need it anyway.
Homebrew is some kind of ports for Mac. As a developer, you should install it:
$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
$ brew install grc coreutils spark z ack git
grep -rilbut faster;
Homebrew Cask let's you install normal apps with brew via command line. You will almost-never have to manually download and install apps again.
$ brew tap caskroom/homebrew-cask $ brew install brew-cask
Then you can install some useful stuff with it:
$ brew cask install caffeine dropbox iterm2 sequel-pro virtualbox vagrant the-unarchiver vlc google-chrome skype transmission dash cloudapp postgres divvy rdio github disk-inventory-x
Let's made a list:
The others are probably auto-explanatory.
ZSH is a pretty powerful shell for *nix systems. As a developer, it just changed my life. I don't even know how I lived before using it. No, really, install it NOW:
$ brew install zsh $ chsh -s /bin/zsh
ZSH is pretty powerful and highly customizable. There are a lot of projects around the web to achieve an easy start to it.
I've already wrote about this before, in case you want to read something about it.
In this example, let's install my dotfiles for osx (basically, the holman's with some custom things):
$ git clone https://github.com/caarlos0/dotfiles ~/.dotfiles $ cd ~/.dotfiles $ script/bootstrap $ source ~/.zshrc $ dot_update # will install some tools and do some basic setup
And you should be ready to go.
rbenv is a ~lightweight~ ruby vm manager. Basically, it does the same thing as RVM, but I found it a little bit less intrusive. If you want, you can install it with brew:
$ brew install rbenv ruby-build $ rbenv install 2.0.0-p195 $ rbenv global 2.0.0-p195 $ rbenv rehash
Be sure to check your
hub is a github command line tool written in Ruby to improve your git/github diary use. You can install it with
$ brew install hub
$ hub clone caarlos0/up
Much less typing, IMHO =)
So, in some projects I use the
rmagick gem, and it got me some headache to install.
Well, here the steps:
$ brew install imagemagick $ brew install pkg-config $ C_INCLUDE_PATH=/usr/local/Cellar/imagemagick/6.8.0-10/include/ImageMagick gem install rmagick
And boom! It works =) Pretty tricky.
C_INCLUDE trick seems to not be needed anymore.
If you want, you can also take a look at my OSX Settings, which is already available in my dotfiles (and you already have if you ran the
As suggested in comments and by some friends:
Have your own tips? Share with the other fellows in comment box bellow.