scripts/dav-bash-completion.bash

changeset 457
0eabb741d5d3
parent 435
def0359fb48f
child 673
8e7e56cfc103
equal deleted inserted replaced
456:8158a1ada756 457:0eabb741d5d3
1 dav_completion() { 1 dav_completion() {
2 local davcmd 2 local davcmd
3 local out 3 local out
4 local cmd_res 4 local cmd_res
5 5
6 davcmd="${COMP_WORDS[0]}" 6 davcmd="${COMP_WORDS[0]} complete $COMP_CWORD ${COMP_WORDS[@]}"
7 out=$( $davcmd complete $COMP_CWORD "${COMP_WORDS[@]}" ) 7 out=$(eval $davcmd)
8 cmd_res=$? 8 cmd_res=$?
9 9
10 if [ $cmd_res == 10 ]; then 10 if [ $cmd_res == 10 ]; then
11 compopt -o nospace 11 compopt -o nospace
12 fi 12 fi

mercurial