apm icon indicating copy to clipboard operation
apm copied to clipboard

Bash completion

Open Stefan-Code opened this issue 8 years ago • 8 comments

It would be nice to have automatic bash completion for all the possible apm commands. (if that's already supposed to be there, it's broken for me). So

apm ins<TAB>

completes to

apm install

Stefan-Code avatar Oct 16 '15 19:10 Stefan-Code

This would be sooooo nice.

thibmaek avatar Oct 19 '15 09:10 thibmaek

hi.. I wrote it :) https://github.com/vigo/dotfiles-universal/blob/master/completions/apm

how can I merge this? classic PR or?

vigo avatar Oct 30 '15 06:10 vigo

Or put it up on brew.

thibmaek avatar Oct 30 '15 08:10 thibmaek

yep! just PR'd to homebrew-completions @thibmaek

vigo avatar Oct 30 '15 15:10 vigo

Yes its on! https://github.com/vigo/apm-bash-completion

brew install homebrew/completions/apm-bash-completion

this issue is ready for close :)

vigo avatar Oct 30 '15 17:10 vigo

This issue is ready for some work, since brew is for Mac, what about Linux users? Vigo's script work like a charm:

sudo wget https://raw.githubusercontent.com/vigo/apm-bash-completion/master/apm -O /etc/bash_completion.d/apm
source /etc/bash_completion.d/apm

pabloab avatar Feb 16 '17 16:02 pabloab

@vigo's got a good start but I would like to be able to use enable and disable so that it auto-completes packages. apm enable tele[tab] should complete to teletype for example.

JBallin avatar Jul 12 '18 18:07 JBallin

I was talking about this package to a colleague almost couple days ago. I was telling that "well, It's been 2-3 years I'm not using Atom, probably there are lots of new changes. I need to check the script" :))) Sure, I can fix it... I'll take a look at it this weekend!

vigo avatar Jul 13 '18 05:07 vigo