Skip to content

Instantly share code, notes, and snippets.

Last active December 21, 2015 20:09
What would you like to do?
update to mark autocomplete function for mac os x found here:
_completemarks() {
local curw=${COMP_WORDS[COMP_CWORD]}
local wordlist=$(find $MARKPATH -type l | sed -En 's/(.*)\/.(marks)\/(.*)/\3/p')
COMPREPLY=($(compgen -W '${wordlist[@]}' -- "$curw"))
return 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment