diff --git a/bin/_j b/bin/_j index 6cbd600..fadb89a 100644 --- a/bin/_j +++ b/bin/_j @@ -1,4 +1,4 @@ -#compdef j +# used for zsh tab completion cur=${words[2, -1]} autojump --complete ${=cur[*]} | while read i; do diff --git a/bin/autojump.bash b/bin/autojump.bash index 4e39014..0aa5b4f 100644 --- a/bin/autojump.bash +++ b/bin/autojump.bash @@ -11,25 +11,6 @@ EOF } complete -F _autojump j -_autojump_files() { - if [[ ${COMP_WORDS[COMP_CWORD]} == *__* ]]; then - local cur - #cur=${COMP_WORDS[*]:1} - cur=${COMP_WORDS[COMP_CWORD]} - comps=$(autojump --complete $cur) - while read i - do - COMPREPLY=("${COMPREPLY[@]}" "${i}") - done <