Skip to content

Instantly share code, notes, and snippets.

@calvinf
Forked from glombard/install-apparix.sh
Last active September 13, 2016 21:33
Show Gist options
  • Save calvinf/7179498110c5a1d9c97b to your computer and use it in GitHub Desktop.
Save calvinf/7179498110c5a1d9c97b to your computer and use it in GitHub Desktop.
Setting up Apparix for directory bookmarks on Mac OS X
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
@calvinf
Copy link
Author

calvinf commented Sep 13, 2016

Don't forget to add aliases as relevant for my own remembrance:

alias bookmark=bm
alias go=to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment