Skip to content

Instantly share code, notes, and snippets.

@chadhs
Last active December 21, 2015 20:09
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 chadhs/6359089 to your computer and use it in GitHub Desktop.
Save chadhs/6359089 to your computer and use it in GitHub Desktop.
update to mark autocomplete function for mac os x found here: http://jeroenjanssens.com/2013/08/16/quickly-navigate-your-filesystem-from-the-command-line.html
_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