-
-
Save calvinf/7179498110c5a1d9c97b to your computer and use it in GitHub Desktop.
Setting up Apparix for directory bookmarks on Mac OS X
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
brew install -v apparix | |
# Installed to: /opt/foo/Cellar/apparix/11-0/bin/apparix | |
# Add bm/to Bash functions from man page to .bashrc or .local.bash: | |
man -P cat apparix | awk '/BASH-style functions/{p=1} /---/{if(p==1)p=2; else p=0; next} p>1{print}' >> ~/.bash_profile | |
# Reload my bash config: | |
source ~/.bash_profile | |
# Now create a bookmark: | |
cd ~/src/myproject | |
bm prj | |
# Go to my project: | |
to prj | |
# View my shortcuts | |
apparix | |
# or: cat ~/.apparixrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Don't forget to add aliases as relevant for my own remembrance: