Bash autocomplete slow
Hello. I installed weboob today and immediately noticed my shell's startup time increased greatly. I tracked it down to the following line in /etc/bash_completion.d/weboob
:
weboob_applications=$(weboob-config applications 2>/dev/null)
Since the applications are known beforehand, why calculate them dynamically every time a shell is opened? That seems ridiculous.
for application in boobank boobathon boobcoming boobill booblyrics boobmsg boobooks boobsize boobtracker cineoob comparoob cookboob flatboob galleroob geolooc handjoob havedate monboob parceloob pastoob qbooblyrics qboobmsg qcineoob qcookboob qflatboob qgalleroob qhandjoob qhavedate qvideoob qwebcontentedit qweboobcfg radioob shopoob suboob translaboob traveloob videoob webcontentedit weboobcfg weboobcli weboobdebug weboobrepos weboorrents wetboobs ; do
complete -F _weboob $application
done
This would be much faster. Thank you for the weboob project, by the way. It fills a hole I didn't even realize was there.