MichaelAquilina / zsh-autoswitch-fnm

Autoswitch node versions using fnm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Autoswitch fnm

Simple zsh plugin that automatically runs fnm use if you enter a folder which contains an .nvmrc file.

Usage

You dont need to do anything. Once it's installed, zsh-autoswitch will automatically run fnm for you when needed.

Requirements

You must have fnm installed, on your $PATH and configured correctly in your .zshrc.

zsh-autoswitch-fnm officially supports zsh versions 5.1 onwards.

It is possible the plugin might work on even older versions. However they would not have been tested as part of the CI test process.

Installation

Add one of the following to your .zshrc file depending on your package manager:

ZPlug

zplug "MichaelAquilina/zsh-autoswitch-fnm"

Antigen

antigen bundle "MichaelAquilina/zsh-autoswitch-fnm"

Zgen

zgen load "MichaelAquilina/zsh-autoswitch-fnm"

oh-my-zsh

Clone this repository into $ZSH_CUSTOM/custom/plugins:

git clone https://github.com/MichaelAquilina/zsh-autoswitch-fnm.git $ZSH_CUSTOM/plugins/you-should-use

$ZSH_CUSTOM is oh-my-zsh’s customization directory (docs).

Then add zsh-autoswitch-fnm to the plugins array in your .zshrc:

plugins=(
    # ...
    zsh-autoswitch-fnm
    # ...
)

Contributing

Pull requests and Feedback are welcome! 🎉

About

Autoswitch node versions using fnm


Languages

Language:Shell 100.0%