Created
April 13, 2011 14:59
-
-
Save sebastianmarr/917682 to your computer and use it in GitHub Desktop.
zsh autojump completion
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
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