mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Enable running maven from a project's subdirectory
This commit is contained in:
parent
66e214e6a7
commit
77c8d5c99e
1 changed files with 4 additions and 1 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue