Open dashezup opened 3 years ago
You can override it with
_xbps() {}
or just disable for xbps-install
with compdef -d xbps-install
, or just disable package completion with
_xbps_all_packages() {}
xbps-query will read and parse the repodata file, not sure why this is particularily slow.
Try
perf record xbps-query -Rs ''
perf report
This one works and disables completion for xi
on zsh
_xbps() {}
_xbps_install() {}
perf
is a package which has noarch
set to yes and does not available for aarch64, but I managed to install it by build it from void-packages on rpi.
[ perf record: Woken up 6 times to write data ]
[ perf record: Captured and wrote 1.331 MB perf.data (34832 samples) ]
perf record xbps-query -Rs '' 5.87s user 3.71s system 99% cpu 9.592 total
On Raspberry Pi 3 Model B (void aarch64)
xbps {bash,zsh}-completions just use
xbps-query
to list all packages, those are slow on my rpi3.xbps-query -Rs ''
get data? Is it because of the storage? (microSD in this case)-l
and-m
are fast btw, I guess those reads data from xbps database (xml file), idk about -RsThe last solution would be remove the completion, but I would avoid this.
rm /usr/share/bash-completion/completions/xbps* /usr/share/zsh/site-functions/_xbps
Edit: I just learnednoextract=pattern
inxbps.d(5)
, better than just delete the completion file. but I still want a way to disable it through shell configuration.@leahneukirchen I checked the commit log and seems you are the main author of this shell-completion script, do you know how to disable it through bash/zsh configuration files?