1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-25 01:16:14 +01:00

Make completion for osc smart

that is more commands, more options, and backgrounding the update
of the project cache.

Signed-off-by: Werner Fink <werner@suse.de>
This commit is contained in:
Werner Fink 2013-04-23 18:51:35 +02:00 committed by Marcus Huewe
parent eea716f11f
commit 08a9505042
3 changed files with 1629 additions and 246 deletions

6
dist/complete.csh vendored
View File

@ -6,9 +6,9 @@ set rel=$rev:e
set pat=$tcsh:e
set rev=$rev:r
if ($rev > 5 && $rel > 1) then
if ( -s /usr/share/osc/complete ) complete osc 'p@*@`/usr/share/osc/complete`@'
if ( -s /usr/lib64/osc/complete ) complete osc 'p@*@`/usr/lib64/osc/complete`@'
if ( -s /usr/lib/osc/complete ) complete osc 'p@*@`/usr/lib/osc/complete`@'
if ( -s /usr/share/osc/complete ) complete osc 'p@*@`\/usr/share/osc/complete`@'
if ( -s /usr/lib64/osc/complete ) complete osc 'p@*@`\/usr/lib64/osc/complete`@'
if ( -s /usr/lib/osc/complete ) complete osc 'p@*@`\/usr/lib/osc/complete`@'
endif
end:
onintr

1
dist/complete.sh vendored
View File

@ -1,6 +1,7 @@
test -z "$BASH_VERSION" && return
complete -o default _nullcommand >/dev/null 2>&1 || return
complete -r _nullcommand >/dev/null 2>&1 || return
COMP_WORDBREAKS="${COMP_WORDBREAKS//:}"
test -s /usr/share/osc/complete && complete -o default -C /usr/share/osc/complete osc
test -s /usr/lib64/osc/complete && complete -o default -C /usr/lib64/osc/complete osc
test -s /usr/lib/osc/complete && complete -o default -C /usr/lib/osc/complete osc

1868
dist/osc.complete vendored

File diff suppressed because it is too large Load Diff