yarn-completion
yarn-completion copied to clipboard
Add instructions for Debian based linux distributions
Thanks for the PR.
Question: What is wrong with the existing instructions in the README? Installing in $BASH_COMPLETION_USER_DIR
(defaulting to ~/.local/share/bash-completion
) is the defacto way to install local completions for all linux OSes. This is even specified in the bash-completion README.
Did this not work for you?
Cool and thanks for your time reviewing it.
I never managed to install correctly bash-completion
on my machine. So the instructions are for installing without bash-completion
.
How would this work without bash-completion installed?
On Fedora 31, according to the config file found in /etc/profile.d/bash_completion.sh
, the user directory to target is ${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion
@Nabellaleen See the third "Q" in this list: https://github.com/scop/bash-completion#faq
Indeed, it works well on .local/share/bash_completion
but not in .config
I can confirm that the default instructions in the README did not work in Ubuntu 20.04 (threw an error: Failed writing body
), whereas these instructions worked.
One extra step was required for me, though: I had to add source ~/.bash_completion
to my ~/.bashrc
.
(Thanks for writing this tool! :smile:)