Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/artemy/zsh-mvn-contexts
zsh plugin for quickly switching between maven configuration files
https://github.com/artemy/zsh-mvn-contexts
maven mvn plugin settings zsh zsh-plugin
Last synced: 16 days ago
JSON representation
zsh plugin for quickly switching between maven configuration files
- Host: GitHub
- URL: https://github.com/artemy/zsh-mvn-contexts
- Owner: artemy
- License: mit
- Created: 2020-08-24T16:01:02.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-26T07:37:16.000Z (over 4 years ago)
- Last Synced: 2024-10-31T14:06:09.258Z (2 months ago)
- Topics: maven, mvn, plugin, settings, zsh, zsh-plugin
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zsh-mvn-contexts
zsh-mvn-contexts is a zsh plugin for fast switching between your maven configurations
## Installation
### I'm using Antigen
1. Add the following to your .zshrc:
```bash
antigen bundle artemy/zsh-mvn-contexts
```2. Restart zsh.
### I'm using oh-my-zsh
1. Clone this repository into oh-my-zsh's plugin directory:
```bash
git clone [email protected]:artemy/zsh-mvn-contexts.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/_mvnctx
```2. Enable the plugin in `~/.zshrc`:
```bash
plugins=( [other plugins...] _mvnctx)
```(mind the underscore)
3. Restart zsh.## Prerequisites
1. Create `~/.m2/contexts` directory
2. Save your custom maven settings as `~/.m2/contexts/.xml`
3. (Optional) save your custom maven security file as `~/.m2/contexts/-security.xml`## How it works
Plugin will symlink one of the specified "context" files from your `~/.m2/contexts` directory into `~/.m2` directory together with respective security file (if exists).
## Usage
```bash
mvnctx
```Plugin is also aware of existing configurations so it supports autocompletion.
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
## Notes
Thanks to [Robin Trietsch](https://github.com/trietsch) for the idea and contributions.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.