mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-25 17:36:13 +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:
parent
eea716f11f
commit
08a9505042
6
dist/complete.csh
vendored
6
dist/complete.csh
vendored
@ -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
1
dist/complete.sh
vendored
@ -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
|
||||
|
1784
dist/osc.complete
vendored
1784
dist/osc.complete
vendored
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user