romainberger / yarn-completion

Autocomplete for your projects scripts with yarn
6 stars 2 forks source link

Install issues #1

Open ildella opened 4 years ago

ildella commented 4 years ago

Hi. first, greatly appreciate is the only actual yarn completion that works :)

But to install on my Ubuntu box, "yarn add global" does not work, I had to do it with "npm i -g". With yarn, I get a "yarn-completion command not found".

Also a better way to add bash completion is put the file in /etc/bash_completion.d That will not require to edit the .bashrc, which I find a cleaner solution.

So for me it is:

wget https://github.com/romainberger/yarn-completion/blob/master/yarn-completion.bash
sudo move yarn-completion.bash /etc/bash_completion.d/
npm i -g yarn-completion
ChromeQ commented 1 month ago

The yarn-complete: command not found is due to a typo in the bash script, I find that if you edit line 5 from:

LIST=$(yarn-complete $PWD)

to:

LIST=$(yarn-completion $PWD)

then it works as expected (except for #2)