mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-12 16:56:15 +01:00
Support .kiwi files for bash-completion
This commit enables osc to provide completion for both .spec and .kiwi files, and ensures no ugly "not found" messages are displayed in the terminal due to globbing.
This commit is contained in:
parent
0b7e49b648
commit
5519938392
5
dist/osc.complete
vendored
5
dist/osc.complete
vendored
@ -437,8 +437,9 @@ build)
|
||||
done
|
||||
fi
|
||||
if ((count == 2)) ; then
|
||||
specs=($(command ls *.spec))
|
||||
builtin compgen -W "${opts[*]} ${specs[*]}" -- "${cmdline[count]}"
|
||||
specs=($(command ls *.spec 2>/dev/null))
|
||||
images=($(command ls *.kiwi 2>/dev/null))
|
||||
builtin compgen -W "${opts[*]} ${specs[*]} ${images[*]}" -- "${cmdline[count]}"
|
||||
fi
|
||||
;;
|
||||
branch|getpac|bco|branchco)
|
||||
|
Loading…
Reference in New Issue
Block a user