I want add autocompletion to my script.
I wrote bash code for autocomplete (using this tutor http://tldp.org/LDP/abs/html/tabexpansion.html) and put it to
then i execute in bash
complete -F _main_complete -o filenames ./script.sh
and it's works.
But after reboot I need write this command again.
Sure I can add this to
.bashrc, but it looks bad. Where config file for