Skip to content

Instantly share code, notes, and snippets.

@gklka
Created August 24, 2013 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gklka/6327211 to your computer and use it in GitHub Desktop.
Save gklka/6327211 to your computer and use it in GitHub Desktop.
_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
@gklka
Copy link
Author

gklka commented Aug 24, 2013

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.

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