mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
cleanup, add a few diff tools
This commit is contained in:
parent
f64b990d6a
commit
e5a9008aa8
@ -39,15 +39,13 @@ _autojump_files()
|
|||||||
comps=$(autojump --bash --completion $cur)
|
comps=$(autojump --bash --completion $cur)
|
||||||
while read i
|
while read i
|
||||||
do
|
do
|
||||||
#COMPREPLY=("${COMPREPLY[@]}" "${COMP_WORDS[@]:1:$(( ${#COMP_WORDS[@]} - 1 ))}${i}")
|
|
||||||
COMPREPLY=("${COMPREPLY[@]}" "${i}")
|
COMPREPLY=("${COMPREPLY[@]}" "${i}")
|
||||||
done <<EOF
|
done <<EOF
|
||||||
$comps
|
$comps
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
complete -o default -o bashdefault -F _autojump_files cp
|
complete -o default -o bashdefault -F _autojump_files cp mv meld diff kdiff3
|
||||||
complete -o default -o bashdefault -F _autojump_files mv
|
|
||||||
|
|
||||||
#determine the data directory according to the XDG Base Directory Specification
|
#determine the data directory according to the XDG Base Directory Specification
|
||||||
if [ -n "$XDG_DATA_HOME" ]
|
if [ -n "$XDG_DATA_HOME" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user