1
0
mirror of https://github.com/wting/autojump synced 2026-03-02 03:49:26 +00:00

fix for directories with spaces

This commit is contained in:
Joël Schaerer
2009-02-18 14:55:50 +01:00
parent 0f457b436d
commit 3d4f8a4d4f
3 changed files with 3 additions and 21 deletions

View File

@@ -5,27 +5,9 @@
_autojump()
{
local cur
COMPREPLY=()
cur=${COMP_WORDS[1]}
COMPREPLY=($(autojump --completion "$cur"))
# case "$cur" in
# -*)
# COMPREPLY=( $( compgen -W '-ad -ap -av- -c- -cfg- -cl -cu \
# -dh -ep -f -idp -ierr -inul -kb -o+ -o- -ow -p -p- -r -ta \
# -tb -tn -to -u -v -ver -vp -x -x@ -y' -- $cur ) )
# ;;
# *)
# if [ $COMP_CWORD -eq 1 ]; then
# COMPREPLY=( $( compgen -W 'e l lb lt p t v vb vt x' -- $cur ) )
# else
# _filedir '@(rar|RAR)'
# fi
# ;;
# esac
IFS=$'\n' read -d '' -a COMPREPLY < <(autojump --completion "$cur")
return 0
}
complete -F _autojump j