Skip to content

Instantly share code, notes, and snippets.

@rjungemann
Created March 2, 2011 00:53
Show Gist options
  • Save rjungemann/850238 to your computer and use it in GitHub Desktop.
Save rjungemann/850238 to your computer and use it in GitHub Desktop.
ZSH bookmarks
# http://news.ycombinator.net/item?id=2238846
# enable zsh bookmarks
# example:
# b chuck # bookmark current directory as "chuck"
# ~chuck # recall the "chuck" directory
touch ~/.zshmarks && source ~/.zshmarks
function b() {
echo "hash -d $1=\"`pwd`\"" >> ~/.zshmarks && source ~/.zshmarks
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment