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
case ${COMP_WORDS[$COMP_CWORD-1]} in
-C)
_filedir -d
return 0
;;
-f)
_filedir 'sfv'
return 0
;;
-C)
_filedir -d
return 0
;;
-f)
_filedir 'sfv'
return 0
;;
esac
_filedir

View File

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