mirror of
https://github.com/wting/autojump
synced 2026-03-02 03:49:26 +00:00
update shell scripts to use new tab completion argument --complete, update docs with new --preserve option
This commit is contained in:
2
bin/_j
2
bin/_j
@@ -1,6 +1,6 @@
|
||||
#compdef j
|
||||
cur=${words[2, -1]}
|
||||
|
||||
autojump --completion ${=cur[*]} | while read i; do
|
||||
autojump --complete ${=cur[*]} | while read i; do
|
||||
compadd -U "$i";
|
||||
done
|
||||
|
||||
@@ -2,7 +2,7 @@ _autojump()
|
||||
{
|
||||
local cur
|
||||
cur=${COMP_WORDS[*]:1}
|
||||
comps=$(autojump --bash --completion $cur)
|
||||
comps=$(autojump --bash --complete $cur)
|
||||
while read i
|
||||
do
|
||||
COMPREPLY=("${COMPREPLY[@]}" "${i}")
|
||||
@@ -18,7 +18,7 @@ _autojump_files()
|
||||
local cur
|
||||
#cur=${COMP_WORDS[*]:1}
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
comps=$(autojump --bash --completion $cur)
|
||||
comps=$(autojump --bash --complete $cur)
|
||||
while read i
|
||||
do
|
||||
COMPREPLY=("${COMPREPLY[@]}" "${i}")
|
||||
|
||||
Reference in New Issue
Block a user