Coding style tweaks.
This commit is contained in:
parent
1b13f96ff5
commit
cf882a49e2
@ -27,7 +27,8 @@ _mock()
|
||||
_split_longopt && split=true
|
||||
|
||||
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
|
||||
;;
|
||||
-r|--root)
|
||||
@ -62,15 +63,13 @@ _mock()
|
||||
$split && return 0
|
||||
|
||||
if [[ "$cur" == -* ]] ; then
|
||||
COMPREPLY=( $( compgen -W '--version --help --rebuild \
|
||||
--buildsrpm --shell --chroot --clean --init \
|
||||
--installdeps --install --update --orphanskill \
|
||||
--copyin --copyout --root --offline --no-clean \
|
||||
--cleanup-after --no-cleanup-after --arch --target \
|
||||
--define --with --without --resultdir --uniqueext \
|
||||
--configdir --rpmbuild_timeout --unpriv --cwd --spec \
|
||||
--sources --verbose --quiet --trace --enable-plugin \
|
||||
--disable-plugin --print-root-path' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--version --help --rebuild --buildsrpm
|
||||
--shell --chroot --clean --init --installdeps --install --update
|
||||
--orphanskill --copyin --copyout --root --offline --no-clean
|
||||
--cleanup-after --no-cleanup-after --arch --target --define --with
|
||||
--without --resultdir --uniqueext --configdir --rpmbuild_timeout
|
||||
--unpriv --cwd --spec --sources --verbose --quiet --trace
|
||||
--enable-plugin --disable-plugin --print-root-path' -- "$cur" ) )
|
||||
else
|
||||
_filedir '@(?(no)src.r|s)pm'
|
||||
fi
|
||||
|
@ -16,8 +16,8 @@ _dd()
|
||||
;;
|
||||
conv=*)
|
||||
cur=${cur#*=}
|
||||
COMPREPLY=( $( compgen -W 'ascii ebcdic ibm block unblock \
|
||||
lcase notrunc ucase swab noerror sync' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'ascii ebcdic ibm block unblock lcase
|
||||
notrunc ucase swab noerror sync' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
@ -27,7 +27,6 @@ _dselect()
|
||||
remove quit' -- "$cur" ) )
|
||||
fi
|
||||
|
||||
|
||||
return 0
|
||||
} &&
|
||||
complete -F _dselect -o filenames dselect
|
||||
|
@ -43,8 +43,6 @@ _python()
|
||||
-U -v -V -W -x -c" -- "$cur" ) )
|
||||
fi
|
||||
|
||||
|
||||
|
||||
return 0
|
||||
} &&
|
||||
complete -F _python -o filenames python
|
||||
|
@ -11,8 +11,8 @@ _sbcl()
|
||||
|
||||
# completing an option (may or may not be separated by a space)
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--core --noinform --help --version \
|
||||
--sysinit --userinit --eval --noprint --disable-debugger \
|
||||
COMPREPLY=( $( compgen -W '--core --noinform --help --version
|
||||
--sysinit --userinit --eval --noprint --disable-debugger
|
||||
--end-runtime-options --end-toplevel-options ' -- "$cur" ) )
|
||||
else
|
||||
_filedir
|
||||
|
@ -14,7 +14,8 @@ _useradd()
|
||||
# with -u/--uid
|
||||
|
||||
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
|
||||
;;
|
||||
-b|--base-dir|-d|--home|-k|--skel)
|
||||
@ -64,7 +65,8 @@ _usermod()
|
||||
# with -u/--uid
|
||||
|
||||
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
|
||||
;;
|
||||
-g|--gid)
|
||||
@ -126,7 +128,8 @@ _chage()
|
||||
_split_longopt && split=true
|
||||
|
||||
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
|
||||
;;
|
||||
esac
|
||||
|
Loading…
x
Reference in New Issue
Block a user