Coding style tweaks.
This commit is contained in:
parent
1b13f96ff5
commit
cf882a49e2
@ -27,7 +27,8 @@ _mock()
|
|||||||
_split_longopt && split=true
|
_split_longopt && split=true
|
||||||
|
|
||||||
case $prev in
|
case $prev in
|
||||||
-h|--help|--copyin|--copyout|--arch|-D|--define|--with|--without|--uniqueext|--rpmbuild_timeout|--sources|--cwd)
|
-h|--help|--copyin|--copyout|--arch|-D|--define|--with|--without|\
|
||||||
|
--uniqueext|--rpmbuild_timeout|--sources|--cwd)
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
-r|--root)
|
-r|--root)
|
||||||
@ -62,15 +63,13 @@ _mock()
|
|||||||
$split && return 0
|
$split && return 0
|
||||||
|
|
||||||
if [[ "$cur" == -* ]] ; then
|
if [[ "$cur" == -* ]] ; then
|
||||||
COMPREPLY=( $( compgen -W '--version --help --rebuild \
|
COMPREPLY=( $( compgen -W '--version --help --rebuild --buildsrpm
|
||||||
--buildsrpm --shell --chroot --clean --init \
|
--shell --chroot --clean --init --installdeps --install --update
|
||||||
--installdeps --install --update --orphanskill \
|
--orphanskill --copyin --copyout --root --offline --no-clean
|
||||||
--copyin --copyout --root --offline --no-clean \
|
--cleanup-after --no-cleanup-after --arch --target --define --with
|
||||||
--cleanup-after --no-cleanup-after --arch --target \
|
--without --resultdir --uniqueext --configdir --rpmbuild_timeout
|
||||||
--define --with --without --resultdir --uniqueext \
|
--unpriv --cwd --spec --sources --verbose --quiet --trace
|
||||||
--configdir --rpmbuild_timeout --unpriv --cwd --spec \
|
--enable-plugin --disable-plugin --print-root-path' -- "$cur" ) )
|
||||||
--sources --verbose --quiet --trace --enable-plugin \
|
|
||||||
--disable-plugin --print-root-path' -- "$cur" ) )
|
|
||||||
else
|
else
|
||||||
_filedir '@(?(no)src.r|s)pm'
|
_filedir '@(?(no)src.r|s)pm'
|
||||||
fi
|
fi
|
||||||
|
@ -16,8 +16,8 @@ _dd()
|
|||||||
;;
|
;;
|
||||||
conv=*)
|
conv=*)
|
||||||
cur=${cur#*=}
|
cur=${cur#*=}
|
||||||
COMPREPLY=( $( compgen -W 'ascii ebcdic ibm block unblock \
|
COMPREPLY=( $( compgen -W 'ascii ebcdic ibm block unblock lcase
|
||||||
lcase notrunc ucase swab noerror sync' -- "$cur" ) )
|
notrunc ucase swab noerror sync' -- "$cur" ) )
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@ -25,7 +25,7 @@ _dd()
|
|||||||
_expand || return 0
|
_expand || return 0
|
||||||
|
|
||||||
COMPREPLY=( $( compgen -W '--help --version' -- "$cur" ) \
|
COMPREPLY=( $( compgen -W '--help --version' -- "$cur" ) \
|
||||||
$( compgen -W 'bs cbs conv count ibs if obs of seek skip'\
|
$( compgen -W 'bs cbs conv count ibs if obs of seek skip' \
|
||||||
-S '=' -- "$cur" ) )
|
-S '=' -- "$cur" ) )
|
||||||
} &&
|
} &&
|
||||||
complete -F _dd -o nospace -o filenames dd
|
complete -F _dd -o nospace -o filenames dd
|
||||||
|
@ -27,7 +27,6 @@ _dselect()
|
|||||||
remove quit' -- "$cur" ) )
|
remove quit' -- "$cur" ) )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
} &&
|
} &&
|
||||||
complete -F _dselect -o filenames dselect
|
complete -F _dselect -o filenames dselect
|
||||||
|
@ -51,7 +51,7 @@ _postmap()
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
if [[ $cur == -* ]]; then
|
if [[ $cur == -* ]]; then
|
||||||
COMPREPLY=( $( compgen -W '-N -f -i -n -o -p -r -v -w -c -d -q'\
|
COMPREPLY=( $( compgen -W '-N -f -i -n -o -p -r -v -w -c -d -q' \
|
||||||
-- "$cur" ) )
|
-- "$cur" ) )
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
@ -143,7 +143,7 @@ _postconf()
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
if [[ $cur == -* ]]; then
|
if [[ $cur == -* ]]; then
|
||||||
COMPREPLY=( $( compgen -W '-A -a -b -c -d -e -h -m -l -n -t -v'\
|
COMPREPLY=( $( compgen -W '-A -a -b -c -d -e -h -m -l -n -t -v' \
|
||||||
-- "$cur" ) )
|
-- "$cur" ) )
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
@ -43,8 +43,6 @@ _python()
|
|||||||
-U -v -V -W -x -c" -- "$cur" ) )
|
-U -v -V -W -x -c" -- "$cur" ) )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
} &&
|
} &&
|
||||||
complete -F _python -o filenames python
|
complete -F _python -o filenames python
|
||||||
|
@ -11,8 +11,8 @@ _sbcl()
|
|||||||
|
|
||||||
# completing an option (may or may not be separated by a space)
|
# completing an option (may or may not be separated by a space)
|
||||||
if [[ "$cur" == -* ]]; then
|
if [[ "$cur" == -* ]]; then
|
||||||
COMPREPLY=( $( compgen -W '--core --noinform --help --version \
|
COMPREPLY=( $( compgen -W '--core --noinform --help --version
|
||||||
--sysinit --userinit --eval --noprint --disable-debugger \
|
--sysinit --userinit --eval --noprint --disable-debugger
|
||||||
--end-runtime-options --end-toplevel-options ' -- "$cur" ) )
|
--end-runtime-options --end-toplevel-options ' -- "$cur" ) )
|
||||||
else
|
else
|
||||||
_filedir
|
_filedir
|
||||||
|
@ -14,7 +14,8 @@ _useradd()
|
|||||||
# with -u/--uid
|
# with -u/--uid
|
||||||
|
|
||||||
case $prev in
|
case $prev in
|
||||||
-c|--comment|-h|--help|-e|--expiredate|-f|--inactive|-k|--key|-p|--password|-u|--uid|-Z|--selinux-user)
|
-c|--comment|-h|--help|-e|--expiredate|-f|--inactive|-k|--key|\
|
||||||
|
-p|--password|-u|--uid|-Z|--selinux-user)
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
-b|--base-dir|-d|--home|-k|--skel)
|
-b|--base-dir|-d|--home|-k|--skel)
|
||||||
@ -64,7 +65,8 @@ _usermod()
|
|||||||
# with -u/--uid
|
# with -u/--uid
|
||||||
|
|
||||||
case $prev in
|
case $prev in
|
||||||
-c|--comment|-d|--home|-e|--expiredate|-f|--inactive|-h|--help|-l|--login|-p|--password|-u|--uid|-Z|--selinux-user)
|
-c|--comment|-d|--home|-e|--expiredate|-f|--inactive|-h|--help|\
|
||||||
|
-l|--login|-p|--password|-u|--uid|-Z|--selinux-user)
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
-g|--gid)
|
-g|--gid)
|
||||||
@ -126,7 +128,8 @@ _chage()
|
|||||||
_split_longopt && split=true
|
_split_longopt && split=true
|
||||||
|
|
||||||
case $prev in
|
case $prev in
|
||||||
-d|--lastday|-E|--expiredate|-h|--help|-I|--inactive|-m|--mindays|-M|--maxdays|-W|--warndays)
|
-d|--lastday|-E|--expiredate|-h|--help|-I|--inactive|-m|--mindays|\
|
||||||
|
-M|--maxdays|-W|--warndays)
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user