Document how to install bash completion

Relates to #215.
This commit is contained in:
Falko Modler
2020-12-25 22:30:34 +01:00
committed by Peter Palaga
parent 1a91c87ecc
commit 7b2d4d6254

View File

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