1

A piece of software I would like to use, xsos, comes with a bash-completion script.

Where is the correct place to store it on a Fedora system?

Should I create a generic directory in my $HOME and then call it from .bashrc?

0

1 Answer 1

2

If you look at the content of the script, it is indicated in it ;-)

# Save it to: /etc/bash_completion.d/

Just for information, on Fedora (38 at least) there is the following directory:

~/.bashrc.d/

The .bashrc sources all files inside:

# User specific aliases and functions
if [ -d ~/.bashrc.d ]; then
        for rc in ~/.bashrc.d/*; do
                if [ -f "$rc" ]; then
                        . "$rc"
                fi
        done
fi

If you want to source a file for everyone on the system, put it in

/etc/profile.d/

But for your specific question, I think the answer is inside the script itself, as I showed you ;-).

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .