yarn-completion icon indicating copy to clipboard operation
yarn-completion copied to clipboard

Add instructions for Debian based linux distributions

Open dawez opened this issue 5 years ago • 7 comments

dawez avatar Nov 25 '19 10:11 dawez

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?

dsifford avatar Nov 25 '19 12:11 dsifford

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.

dawez avatar Nov 25 '19 16:11 dawez

How would this work without bash-completion installed?

dsifford avatar Nov 25 '19 16:11 dsifford

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 avatar Feb 07 '20 16:02 Nabellaleen

@Nabellaleen See the third "Q" in this list: https://github.com/scop/bash-completion#faq

dsifford avatar Feb 07 '20 16:02 dsifford

Indeed, it works well on .local/share/bash_completion but not in .config

Nabellaleen avatar Feb 15 '20 18:02 Nabellaleen

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:)

nolanlawson avatar Jun 27 '20 18:06 nolanlawson