You are not logged in.

#1 2023-08-26 03:39:24

gcb
Member
Registered: 2014-02-12
Posts: 213

Bash completion

i see that *without* installing `bash-completion` there are already several files in /usr/share/bash-completion/...

what's the proper way to consume those?

the completion package install 1Mb of other files and a script that does its magic and hooks up everything via a /usr/share/bash-completion/bash_completion script. But without the script and the larger package, how am i supposed to use the ones that are included on the regular bash packages? ...not asking how to make it work, but if I am missing something that enable those completions like the full package does.

Or are those just placed there by other packages because they assume there will be bash-completion installed and are useless without it?

Offline

#2 2023-08-26 04:43:06

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,455

Re: Bash completion

You can check which package owns the file with

pacman -Qo <file with path>

Offline

#3 2023-08-26 04:54:22

mpan
Member
Registered: 2012-08-01
Posts: 1,600
Website

Re: Bash completion

“/usr/share/bash-completion” is a place for drop-in files. Many packages⁽¹⁾ put files there. The files in “/usr/share/bash-completion/completions” are plain scripts, which can be sourced into your shell.
____
⁽¹⁾ 421 at this point.


Paperclips in avatars? | Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

Board footer

Powered by FluxBB