oh-my-zsh and fun with fonts

After viewing this slideshare on the Z shell (zsh), I decided to give it a spin.  As recommended in the presentation, I went ahead and setup oh-my-zsh as well.  At first, it was a bit awkward moving around, I mean the cd completions happen under the prompt!  But then I cd‘d to a git directory and I don’t think I’m switching back.  The git plugin has really nice command completion and the prompt itself shows the branch name.

oh-my-zsh with the git plugin
oh-my-zsh with the git plugin

The slide share is worth a look and I strongly recommend any shell enthusiast to give it a spin.  If you are on a mac, it can be brew install‘ed and then be sure to turn on the brew plugin in your .zshrc to get homebrew completion!

oh-my-zsh with homebrew completion
oh-my-zsh with homebrew completion

The only issue was switching my encodings over to UTF8 in iTerm2.  It wasn’t in the most obvious spot, but take a look at the screen shot below to find it.  If you are using mac’s terminal.app, the encoding tab directly off of the main preferences window.

Iterm2 encodings... located under terminal emulation
Iterm2 encodings… located under terminal emulation

With a new shell in hand, it was time to give my fonts a face lift.  I like Ubuntu’s default font, but there are several other fonts that do the trick for terminals at this link.  From there, you can follow the links for free downloads.

Lastly, I wanted Emacs to use my new font.  Courtesy of the recently re-themed EmacsWiki, it’s very easy:

(set-face-attribute 'default nil :font "Ubuntu Mono-14")

An Emacs trick for you: you can evaluate Emacs Lisp directly in the minibuffer with M-:.  So you can just type M-:, yank in that line and change the font.  If you like it, be sure to set in your init files…

Emacs with Ubunto Mono 14
Emacs with ubuntu Mono 14
Advertisements