Skip to content

Commit

Permalink
Document how to install bash completion
Browse files Browse the repository at this point in the history
Relates to #215.
  • Loading branch information
famod authored and ppalaga committed Dec 27, 2020
1 parent 1a91c87 commit 7b2d4d6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7b2d4d6

Please sign in to comment.