Skip to content

Instantly share code, notes, and snippets.

@resure
Created April 1, 2012 18:48
Show Gist options
  • Save resure/2277659 to your computer and use it in GitHub Desktop.
Save resure/2277659 to your computer and use it in GitHub Desktop.
Jump-To-Dir Plugin for oh-my-zsh (inspired by Ryan Bates's config).
c() { cd ~/code/$1; }
_c() { _files -W ~/code -/; }
h() { cd ~/$1; }
_h() { _files -W ~/ -/; }
b() { cd ~/Dropbox/$1; }
_b() { _files -W ~/Dropbox/ -/; }
t() { cd ~/Temporary/$1; }
_t() { _files -W ~/Temporary/ -/; }
o() { cd ~/Work/$1; }
_o() { _files -W ~/Work/ -/; }
compdef _c c
compdef _h h
compdef _b b
compdef _o o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment