This is an automated email from the ASF dual-hosted git repository. tsato pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit 07561e94b7a52367299e66c813cf49d0429b4d76 Author: Tadayoshi Sato <[email protected]> AuthorDate: Fri Nov 11 13:01:05 2022 +0900 CAMEL-18673: Add section for shell completion to camel-jbang.adoc --- docs/user-manual/modules/ROOT/pages/camel-jbang.adoc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc b/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc index 8f97b020863..79f327b52c2 100644 --- a/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc +++ b/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc @@ -39,6 +39,22 @@ TIP: The first time you run this command, it may cause dependencies to be cached All the commands support the `--help` and will display the appropriate help if that flag is provided. +=== Enable shell completion + +Camel JBang provides shell completion for bash and zsh out of the box. To enable shell completion for Camel JBang, run: + +[source,bash] +---- +source <(camel completion) +---- + +To make it permanent, run: + +[source,bash] +---- +echo 'source <(camel completion)' >> ~/.bashrc +---- + == Creating and running Camel routes You can create a new basic routes with the `init` command.
