I have user access (no root) into a Linux (Suse) machine where I developed some bash scripts and the corresponding bash autocompletion rules.
Since the scripts belong only to my user and therefore I need the complete rules only "active" for me (a part from the fact that I have no root write acces), placing my bash_completion script into /etc/bash_completion.d/
folder is not an option.
At the moment I named my file .bash_completion.myscript
and source it directly from my .bashrc
, but I just wonder if there is any other "standard" way of achieving these results, already considered in the bash implementation.
For example, creating a folder /home/myuser/.bash_completion.d/
?
Best Answer
Use a
~/.bash_completion
file.From the Bash Completion FAQ: