[kwlug-disc] Bash Autocompletion (Nov 2022)
Bob Jonkman
bjonkman at sobac.com
Tue Nov 15 20:30:54 EST 2022
Autocomplete for Nextcloud's occ would be very useful.
I'm currently using an alias to make occ more like a regular command:
> alias occ='sudo -u www-data php -f /var/www/nextcloud/occ'
Now if I could get the occ command to autocomplete command, subcommands,
and parameters it would save me having to open a separate terminal just
for the 'occ -h' output
--Bob.
On 2022-11-14 16:30, Ronald Barnes wrote:
> Paul Nijjar via kwlug-announce wrote on 2022-11-05 00:11:
>
>> Our second presentation this month will feature a deep dive into
>> autocompletion in the Bash shell. John Steel will show us how
>> autocompletion works, and some ways to set up autocompletions for your
>> own programs.
>
> John's presentation has sent me down a rabbit hole of frustration (aka
> Bash scripting), and I think I've made progress.
>
>
> If you're reading this, John, I might be able to contribute on the topic
> of auto-completion with space-embedded options.
>
>
> If you're interested in discussing, lemme know.
>
>
> Meanwhile, if anyone knows of some bash scripts that could use an
> auto-completion script, I may be interested in taking it on.
>
>
> I've done balooctl (which I don't even use), and am considering "php
> occ[tab]..." for NextCloud.
>
>
>
> Thanks,
>
> rb
>
>
> _______________________________________________
> kwlug-disc mailing list
> To unsubscribe, send an email to kwlug-disc-leave at kwlug.org
> with the subject "unsubscribe", or email
> kwlug-disc-owner at kwlug.org to contact a human being.
--
Bob Jonkman <bjonkman at sobac.com> Phone: +1-519-635-9413
SOBAC Microcomputer Services http://sobac.com/sobac/
Software --- Office & Business Automation --- Consulting
GnuPG Fngrprnt:04F7 742B 8F54 C40A E115 26C2 B912 89B0 D2CC E5EA
More information about the kwlug-disc
mailing list