From 37095366980b299bae85b46f8d69ff59eae48253 Mon Sep 17 00:00:00 2001 From: William Ting Date: Tue, 31 Dec 2013 09:20:57 -0600 Subject: [PATCH] remove custom app tab completion using autojump in bash --- bin/_j | 2 +- bin/autojump.bash | 19 ------------------- 2 files changed, 1 insertion(+), 20 deletions(-) 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 <