indentation fix

This commit is contained in:
Guillaume Rousse 2009-12-30 00:41:15 +01:00
parent f2041ce0e4
commit ec1e137977
2 changed files with 35 additions and 35 deletions

View File

@ -12,14 +12,14 @@ _cksfv()
fi fi
case ${COMP_WORDS[$COMP_CWORD-1]} in case ${COMP_WORDS[$COMP_CWORD-1]} in
-C) -C)
_filedir -d _filedir -d
return 0 return 0
;; ;;
-f) -f)
_filedir 'sfv' _filedir 'sfv'
return 0 return 0
;; ;;
esac esac
_filedir _filedir

View File

@ -18,23 +18,23 @@ _dict()
for (( i=1; i < COMP_CWORD; i++ )); do for (( i=1; i < COMP_CWORD; i++ )); do
case ${COMP_WORDS[i]} in case ${COMP_WORDS[i]} in
-h|--host) -h|--host)
host=${COMP_WORDS[i+1]} host=${COMP_WORDS[i+1]}
[ -n "$host" ] && host="-h $host" [ -n "$host" ] && host="-h $host"
i=$((++i)) i=$((++i))
;; ;;
-p|--port) -p|--port)
port=${COMP_WORDS[i+1]} port=${COMP_WORDS[i+1]}
[ -n "$port" ] && port="-p $port" [ -n "$port" ] && port="-p $port"
i=$((++i)) i=$((++i))
;; ;;
-d|--database) -d|--database)
db=${COMP_WORDS[i+1]} db=${COMP_WORDS[i+1]}
[ -n "$db" ] && host="-d $db" [ -n "$db" ] && host="-d $db"
i=$((++i)) i=$((++i))
;; ;;
*) *)
;; ;;
esac esac
done done
@ -51,16 +51,16 @@ _dict()
fi fi
case $prev in case $prev in
-d|--database|-i|-info) -d|--database|-i|-info)
COMPREPLY=( $( compgen -W '$( _dictdata -D )' -- "$cur" ) ) COMPREPLY=( $( compgen -W '$( _dictdata -D )' -- "$cur" ) )
return 0 return 0
;; ;;
-s|--strategy) -s|--strategy)
COMPREPLY=( $( compgen -W '$( _dictdata -S )' -- "$cur" ) ) COMPREPLY=( $( compgen -W '$( _dictdata -S )' -- "$cur" ) )
return 0 return 0
;; ;;
*) *)
;; ;;
esac esac
[ -r $dictfile ] && \ [ -r $dictfile ] && \