Closed s1eve-mcdichae1 closed 7 months ago
How about copying it directly into /etc/bash_completion.d
, it's easier to manage and we get the same result.
Yes this works as well. I suppose we don't need to chown
the file here. Do we ever need to make the directory first or will that always exist?
Thanks. If someone updates they will be left with the old file so maybe a good idea to delete the old location during install.
Yes this works as well. I suppose we don't need to
chown
the file here.
No.
Do we ever need to make the directory first or will that always exist?
In theory, yes, but in practice without bash-completion
installed (which creates the folder) it won't work anyway. Let's not bother with the creation, but you can add a check to skip the completion file installation if the folder is missing.
Thanks. If someone updates they will be left with the old file so maybe a good idea to delete the old location during install.
Do you want to remove the directory too, or just the file?
Do you want to remove the directory too, or just the file?
I think we want just the file.
Thanks for this - however I decided to merge https://github.com/RetroPie/RetroPie-Setup/pull/3875 which includes this but also has another change.
Ref: https://serverfault.com/a/1013395