mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
* feat(plugins): added sdkman plugin * feat(plugins): added nvm plugin * fix: fixed the codacy issues
41 lines
632 B
Markdown
41 lines
632 B
Markdown
# nvm plugin
|
|
|
|
This plugin automatically source nvm[1]
|
|
|
|
## Installation
|
|
|
|
### Install nvm
|
|
|
|
Lets install[2] the nvm without updaing shell config!
|
|
|
|
```bash
|
|
export NVM_DIR="$HOME/.nvm" && (
|
|
git clone https://github.com/nvm-sh/nvm.git "$NVM_DIR"
|
|
cd "$NVM_DIR"
|
|
git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)`
|
|
) && \. "$NVM_DIR/nvm.sh"
|
|
```
|
|
|
|
### Include nvm as plugin
|
|
|
|
```bash
|
|
plugins=(
|
|
git
|
|
nvm
|
|
)
|
|
```
|
|
|
|
## nvm completion configuration
|
|
|
|
```bash
|
|
completions=(
|
|
git
|
|
composer
|
|
ssh
|
|
nvm
|
|
)
|
|
```
|
|
|
|
[1]: https://github.com/nvm-sh/nvm
|
|
[2]: https://github.com/nvm-sh/nvm#manual-install
|