1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-25 17:36:13 +01:00
github.com_openSUSE_osc/dist/complete.csh
Werner Fink 08a9505042 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>
2013-05-21 20:11:33 +02:00

15 lines
439 B
Tcsh

onintr -
if (! $?prompt || ! $?tcsh) goto end
if ($tcsh == 1) goto end
set rev=$tcsh:r
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`@'
endif
end:
onintr