Created
August 24, 2013 09:53
-
-
Save gklka/6327211 to your computer and use it in GitHub Desktop.
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
_completemarks() { | |
local curw=${COMP_WORDS[COMP_CWORD]} | |
local wordlist=$(find ~/.marks/ -type l -print | awk -F/ '{print $NF}') | |
COMPREPLY=($(compgen -W '${wordlist[@]}' -- "$curw")) | |
return 0 | |
} | |
complete -F _completemarks jump unmark |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the working version of http://jeroenjanssens.com/2013/08/16/quickly-navigate-your-filesystem-from-the-command-line.html jumping links autocomplete for OS X.