Skip to content

Instantly share code, notes, and snippets.

@sigma
Created December 8, 2011 18:03
Show Gist options
  • Save sigma/1447857 to your computer and use it in GitHub Desktop.
Save sigma/1447857 to your computer and use it in GitHub Desktop.
.local.hashes
#!/usr/bin/zsh
# I organize my projects by vcs / project
# e.g. Projects/git/magit or Projects/hg/marmalade
# every project gets its named directory: ~magit or ~marmalade
for proj in ~/Projects/*/*(-/); do
hash -d ${proj##*/}=${proj};
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment