Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add - command completion #123

Open
rootscript opened this issue Dec 1, 2017 · 3 comments
Open

add - command completion #123

rootscript opened this issue Dec 1, 2017 · 3 comments

Comments

@rootscript
Copy link

@rootscript rootscript commented Dec 1, 2017

I love this tool for macOS. Can i suggest/request an enhancement feature:

It would be useful to have command completion, to speed up workflow.

For example, typing m bl + Tab would complete to m bluetooth, and another Tab would give you the status, enable, disable command options.

Another example is typing m b + Tab, this would allow you to complete to battery or bluetooth

Maybe this is already implemented, or there is a Mac terminal way to index commands for auto completion? But if it is, it was not immediately obvious to me.

@rootscript
Copy link
Author

@rootscript rootscript commented Dec 1, 2017

Just noticed this:
# copy this file into /usr/local/etc/bash_completion.d/
I installed via homebrew so I missed this info.

I just checked in bash & zsh, but still I can't get auto completion working. Need a hand getting this part working, please

@lavadew
Copy link
Contributor

@lavadew lavadew commented Jan 11, 2018

Change into the 'completion/bash' directory and run the following command:

sudo cp m /usr/local/etc/bash_completion.d/m

@gregorynicholas
Copy link

@gregorynicholas gregorynicholas commented Oct 23, 2019

@lavadew perhaps should be advised without the sudo:
cp m /usr/local/etc/bash_completion.d/m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.