From 7b2d4d62549bb52c060983445c138917eb54feb6 Mon Sep 17 00:00:00 2001 From: Falko Modler Date: Fri, 25 Dec 2020 22:30:34 +0100 Subject: [PATCH] Document how to install bash completion Relates to #215. --- README.adoc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.adoc b/README.adoc index 04613d8c..88e03d94 100644 --- a/README.adoc +++ b/README.adoc @@ -61,6 +61,15 @@ sense. With SDKMAN!, the `~/.m2/mvnd.properties` file is typically not needed at $ brew install mvndaemon/homebrew-mvnd/mvnd ---- +=== Set up completion + +Optionally, you can set up completion as follows: +[source,shell] +---- +$ echo 'source <(mvnd --completion bash)' >> ~/.bashrc +---- +`bash` is the only shell supported at this time. + === Note for oh-my-zsh users === Users that use `oh-my-zsh` often use completion for maven. The default maven completion plugin defines `mvnd` as an alias to `mvn deploy`. So before being able to use `mvnd`, you need to unalias using the following command: