Skip to content

Instantly share code, notes, and snippets.

@sebastianmarr
Created April 13, 2011 14:59
Show Gist options
  • Save sebastianmarr/917682 to your computer and use it in GitHub Desktop.
Save sebastianmarr/917682 to your computer and use it in GitHub Desktop.
zsh autojump completion
function autojumpcomp () {
cur=${words[2, -1]}
autojump --completion ${=cur[*]} | while read i; do
compadd -U "$i";
done
}
compdef autojumpcomp j
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment