Getting My New Macbook Dev-Ready
For my trip to Europe, I purchased a brand new Macbook! It’s the perfect travel companion: lightweight, decent battery life, and just powerful enough to do basic computing (email, blogging, etc).
I bought it to replace my trusty Thinkpad x220, which I’ve used as a development machine for about five years now. With Ubuntu as my operating system, most everything I needed as a web developer was already installed and set up. Since this Macbook is a brand new laptop, I thought I’d share my process for getting it “dev-ready”.
Install Git via Xcode Command Line Tools
My version control system of choice is Git, which is very popular amongst all developers. The easiest way to get Git on my Macbook is through Xcode Command Line Tools. For the latest version of Git, it can easily be installed manually.
Xcode Command Line Tools can be installed by typing the following into the terminal:
Once installation completes, running git --version
should yield something like:
Clone my Vim Configuration (vimrc)
Vim is my text editor of choice. There are many resources out on the web about creating vimrc
configuration files, so I won’t go into too much detail about my own. Though, I have it hosted on Github for anyone who wants to check it out.
Here are some articles I found useful when setting up my own vimrc
:
- The ultimate Vim configuration - vimrc
- A Good Vimrc
- Vim Splits - Move Faster and More Naturally
- Vim Splits: A Guide to Doing Exactly What You Want
Install Vundle
To enhance my programming experience within Vim, I install a select list of Vim plugins. Vundle makes managing those plugins very easy!
To install Vundle, clone the Git repository into ~/.vim
by running:
Then, the following snippet is added to the top of vimrc
:
Now, fire up vim
and run :PluginInstall
.
Once the command is finished, all of the Vim plugins listed in vimrc
should be installed and ready to use!
Install Homebrew
Installing tools and applications in Ubuntu is really easy with apt, its package management system. The equivalent for OS X is Homebrew, also known as “the missing package manager for OS X.”
Homebrew can easily be installed by typing the following into the terminal:
Hitting Enter
will let start the installation, which fetches and builds Homebrew.
Once installation is complete, running brew -v
should yield something like:
Install Ack
Ack is very similar to Grep, which allows users to text-search across multiple files. I use it within Vim via the AckVim plugin. With Homebrew, it’s very easy to install:
Once installation is complete, running ack --version
should yield something like:
Install Tmux
Tmux is a tool that allows users to manage multiple terminal panes and sessions from within a single window. It makes life within the terminal much easier! Again, with Homebrew, it’s very easy to install:
Once installation is complete, running tmux -V
should yield something like:
Clone my Tmux Configuration (tmux.conf)
Like my vimrc
, my tmux.conf
is hosted on Github.
Here are some articles I found useful when setting up my own tmux.conf
: