atom / apm

Atom Package Manager
https://atom.io/packages
MIT License
1.27k stars 297 forks source link

Bash completion #452

Open Stefan-Code opened 8 years ago

Stefan-Code commented 8 years ago

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
thibmaek commented 8 years ago

This would be sooooo nice.

vigo commented 8 years ago

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

how can I merge this? classic PR or?

thibmaek commented 8 years ago

Or put it up on brew.

vigo commented 8 years ago

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

vigo commented 8 years ago

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

brew install homebrew/completions/apm-bash-completion

this issue is ready for close :)

pabloab commented 7 years ago

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
JBallin commented 6 years ago

@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.

vigo commented 6 years ago

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!