diff --git a/plugins/mvn/mvn.plugin.zsh b/plugins/mvn/mvn.plugin.zsh index fc5922587..74b3bee59 100644 --- a/plugins/mvn/mvn.plugin.zsh +++ b/plugins/mvn/mvn.plugin.zsh @@ -39,7 +39,10 @@ mvn-color() echo -ne ${RESET_FORMATTING} ) } - + +# Run mvn against the pom found in a project's root directory (assumes a git repo) +alias mvn!='mvn -f $(git rev-parse --show-toplevel || echo ".")/pom.xml' + # Override the mvn command with the colorized one. #alias mvn="mvn-color"