Created
February 20, 2011 11:20
-
-
Save torsten/835905 to your computer and use it in GitHub Desktop.
A port of Huy Nguyen's bash directory bookmarks to zsh
This file contains 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
# Original code for bash from: | |
# http://www.huyng.com/archives/quick-bash-tip-directory-bookmarks/492/ | |
# Zsh Directory Bookmarks | |
alias m1='alias g1="cd `pwd`"' | |
alias m2='alias g2="cd `pwd`"' | |
alias m3='alias g3="cd `pwd`"' | |
alias m4='alias g4="cd `pwd`"' | |
alias m5='alias g5="cd `pwd`"' | |
alias m6='alias g6="cd `pwd`"' | |
alias m7='alias g7="cd `pwd`"' | |
alias m8='alias g8="cd `pwd`"' | |
alias m9='alias g9="cd `pwd`"' | |
alias mdump='alias -L|grep -e "alias g[0-9]"|grep -v "alias m" > ~/.bookmarks' | |
alias lma='alias -L|grep -e "alias g[0-9]"|grep -v "alias m"|sed "s/alias //"' | |
touch ~/.bookmarks | |
source ~/.bookmarks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment