scripts/dav-bash-completion.bash

changeset 431
1e8592657a01
child 434
bc173bae3caa
equal deleted inserted replaced
430:b7e415d8bcdd 431:1e8592657a01
1 dav_completion() {
2 OUT=$( /export/home/olaf/Projekte/dav/build/dav complete $COMP_CWORD "${COMP_WORDS[@]}" )
3 CMD_RES=$?
4 if [ $CMD_RES == 10 ]; then
5 compopt -o nospace
6 fi
7 if [ $CMD_RES == 12 ]; then
8 compopt -o default
9 COMPREPLY=()
10 else
11 TMP_IFS=$IFS
12 IFS='
13 '
14 COMPREPLY=( $OUT )
15 IFS=$TMP_IFS
16 fi
17 }
18

mercurial