Skip to content

Conversation

@m00tiny
Copy link

@m00tiny m00tiny commented Sep 25, 2024

Auto-completion for the popular ngrok secure tunneling tool: https://ngrok.com/
Simply dumped the included ngrok completion command into custom/ngrok.complete.sh .. then forked repo, placed it in completion/ngrok.complete.sh

Auto-completion for the popular ngrok secure tunneling tool:
https://ngrok.com/
@akinomyoga
Copy link
Contributor

akinomyoga commented Sep 25, 2024

Simply dumped the included ngrok completion parameter into custom/ngrok.complete.sh

The file contents don't look like a "parameter". Do you mean you've dumped the output of the command ngrok completion?

@m00tiny
Copy link
Author

m00tiny commented Sep 26, 2024

Yes

@akinomyoga
Copy link
Contributor

akinomyoga commented Sep 26, 2024

Thank you for your clarification. Then, could you put the following as instructed here instead of the full contents of the output?

if _omb_util_binary_exists ngrok; then
    eval "$(ngrok completion)"
fi

@akinomyoga
Copy link
Contributor

akinomyoga commented Oct 14, 2024

Actually, the bash-completion framework has a loader for this type of completion (produced by <command> completion. I submitted/merged a PR scop/bash-completion#1252 to add an entry for ngrok in the bash-completion framework.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants