Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gretzky/n.zsh
zsh plugin for switching node versions automatically with n
https://github.com/gretzky/n.zsh
n node-version-manager zsh zsh-plugin
Last synced: about 2 months ago
JSON representation
zsh plugin for switching node versions automatically with n
- Host: GitHub
- URL: https://github.com/gretzky/n.zsh
- Owner: gretzky
- Created: 2018-08-20T22:34:25.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-21T17:55:26.000Z (almost 6 years ago)
- Last Synced: 2024-01-24T22:39:51.288Z (4 months ago)
- Topics: n, node-version-manager, zsh, zsh-plugin
- Language: Shell
- Size: 1000 Bytes
- Stars: 10
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Lists
- awesome-zsh-plugins - n - Auto-switches node versions based on project environment using [n](https://github.com/tj/n). (Plugins / Zinit (nÊe zplugin))
- awesome-zsh-plugins - n - Auto-switches node versions based on project environment using [n](https://github.com/tj/n). (Plugins / ZSH on Windows)
- awesome-zsh-plugins - n - Auto-switches node versions based on project environment using [n](https://github.com/tj/n). (Plugins / ZSH on Windows)
- awesome-stars - gretzky/n.zsh - zsh plugin for switching node versions automatically with n (Shell)
- fucking-awesome-zsh-plugins - n - Auto-switches node versions based on project environment using <b><code> 18581â</code></b> <b><code> 729đ´</code></b> [n](https://github.com/tj/n)). (Plugins / ZSH on Windows)
README
# n.zsh
a zsh plugin for auto-switching node versions based on project environment using [n](https://github.com/tj/n)
## installation
### prerequisites
- jq
```bash
brew install jq
```### antigen
```bash
antigen bundle gretzky/n.zsh
```### zplugin
```bash
zplugin load gretzky/n.zsh
```### zgen
```bash
zgen load gretzky/n.zsh
```### oh-my-zsh
- cd `~/.oh-my-zsh/custom/plugins`
- `git clone https://github.com/gretzky/n.zsh`
- add `n.zsh` to `plugins=()` in your `.zshrc`## usage
on its own, `n.zsh` will check for a `package.json` in the current directory. if it exists, it checks and reads the value of the node engine, and then switches to that version using n.
if the node engine reads 'greater than', `n` switches to node stable. otherwise, it switches to the specified version.