Created
March 2, 2011 00:53
-
-
Save rjungemann/850238 to your computer and use it in GitHub Desktop.
ZSH bookmarks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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