data/xbps.bash: use installed packages in non-repo query completion.
This commit is contained in:
parent
0f73158ed8
commit
487b7296c6
@ -102,9 +102,16 @@ _xbps_complete() {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
if [[ $prev != -@($morecommon|o|-ownedby) ]]; then
|
if [[ $prev != -@($morecommon|o|-ownedby) ]]; then
|
||||||
|
local w
|
||||||
|
for w in "${words[@]}"; do
|
||||||
|
if [[ "$w" == -@(R|-repository) ]]; then
|
||||||
_xbps_all_reply $cur
|
_xbps_all_reply $cur
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
done
|
||||||
|
_xbps_installed_reply $cur
|
||||||
|
return
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
xbps-reconfigure)
|
xbps-reconfigure)
|
||||||
if [[ $prev != -@($common) ]]; then
|
if [[ $prev != -@($common) ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user