robbyrussell/oh-my-zsh — pull request #763 by sgargan (2011-12-21 04:06:58+00:00)
Title: Shortcuts library

I've added a simple library to let users easily add zsh shortcuts that persist across sessions. Its a modification of something I used to do with bash aliases, but this works much better.

Essentially it uses a 'shortcut' command to add shortcuts to a file that is sourced when and entry is added when a session is loaded e.g.

shortcut oh ~/.oh-my-sh
creates the shortcut oh='/home/sgargan/.oh-my-sh'
you can then type 'oh' to jump to that dir.

The shortcuts are then available for posterity or until you delete them. The doc at the top of the script explains...

Let me know what you think.

Thanks,

Steve

Loving 'oh' btw thanks for it!