Skip to content

Plugin for ZSH to install the Fast Node Manager (fnm).

License

Notifications You must be signed in to change notification settings

dominik-schwabe/zsh-fnm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ZSH Plugin - Fast Node Manager (fnm)

ZSH Plugin to install and load the Fast Node Manager (fnm).

Installation

add the following to your .zshrc

zi light "dominik-schwabe/zsh-fnm"

with configurations

zi ice atinit'ZSH_FNM_NODE_VERSION=15.0.0'
zi light "dominik-schwabe/zsh-fnm"

with configurations + turbo mode

zi ice wait lucid atinit'ZSH_FNM_NODE_VERSION=15.0.0'
zi light "dominik-schwabe/zsh-fnm"

Configuration

ZSH_FNM_NODE_VERSION

Set this environment variable to automatically install a node version and use it.
e.g.

export ZSH_FNM_NODE_VERSION="15.0.0"

ZSH_FNM_ENV_EXTRA_ARGS

Pass extra arguments to fnm env.
e.g.

export ZSH_FNM_ENV_EXTRA_ARGS="--use-on-cd"

ZSH_FNM_INSTALL_DIR

Set a fixed location where fnm gets installed.
e.g.

export ZSH_FNM_INSTALL_DIR="$HOME/.fnm"

Similar Projects

Contributions

I don't use fnm anymore (i use asdf) but since this project is so small and easy to maintain, any contributions are welcome.

About

Plugin for ZSH to install the Fast Node Manager (fnm).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages