OSX ZSH magic

Terminal is perfect tool for hackers but it can increase anyones productivity.

ZSH is my default shell in Mac now. Read My Extravagant Zsh Prompt or zsh: The last shell you’ll ever need! why you should choose ZSH over OSX’s default Bash.

Tip 1: Use key bindings.

Here are some of my favourites:

Moving around:

Note: you must configure Terminal key bindings to make Crtl+arrows work for OSX.

Clearing:

Searching & History:

Tip 2: use preconfigured environments

Use shell framework such as oh-my-zsh or dotfiles. They give you helpers and preconfigured, easily customized environment which can be shared easily with all your computers. I chose oh-my-zsh and my configuration is available on GitHub.

Tip 3: replace Terminal.app

Replace Terminal.app with improved terminals with added features. Some options are iTerm or Visor, which I’m using.

Decorator for executing a function in a given namespace

The 1.3.6 update for App Engine introduced support for multitenancy using namespaces. You might want to read the introduction by Nick Johnson to read what it means. Here is a snippet for function decorator allowing you to run function in given namespace. Code is based on this.

New Blog

I finally moved this blog to Google App Engine. The code is based on Bloggart by Nick Johnson which I converted to use the great Tipfy framework.

The code is available on GitHub.

Fork me on GitHub