Missing /etc/bash_completion.d causes bad Linux install
flu0r1ne opened this issue · comments
Alex commented
I've observed an issue where the absence of /etc/bash_completion.d, which can
occasionally occur on Linux systems, causes argcomplete's global activation
script to default to /usr/local/etc/bash_completion.d. As per my understanding,
this is the default location on OSX. However, this results in the completion
script being placed in /usr/local/etc/bash_completion.d on Linux systems. This
location is not sourced by bash-completion.
Argcomplete: f3f856b (most recent)
Steps to reproduce:
$ mv /etc/bash_completion.d /tmp/bash_completion.d
$ ./activate-global-python-argcomplete
Installing /usr/lib/python3.11/site-packages/argcomplete/bash_completion.d/python-argcomplete to /usr/local/share/zsh/site-functions/_python-argcomplete...
Installed.
Installing /usr/lib/python3.11/site-packages/argcomplete/bash_completion.d/python-argcomplete to /usr/local/etc/bash_completion.d/python-argcomplete...
Installed.
Please restart your shell or source the installed file to activate it.