ohmyzsh/plugins/fnm
Fabricio Silva 8924759b12
feat(fnm): add autostart option to setup fnm env
Add new setting `ZSH_FNM_AUTOSTART` to be able to automatic setup the `fnm env`.
Default set to `false` to avoid breaking existing setup.
2025-02-13 12:11:51 +00:00
..
README.md feat(fnm): add autostart option to setup fnm env 2025-02-13 12:11:51 +00:00
fnm.plugin.zsh feat(fnm): add autostart option to setup fnm env 2025-02-13 12:11:51 +00:00

README.md

fnm plugin

This plugin adds autocompletion for fnm - a Node.js version manager.

To use it, add fnm to the plugins array in your .zshrc file:

plugins=(... fnm)

Configuration Variables

These settings should go in your .zshrc file, before Oh My Zsh is sourced.

For example:

ZSH_FNM_AUTOSTART=true
...
plugins=(... fnm)
source "$ZSH/oh-my-zsh.sh"

The following variables are available to this plugin customization:

Variable Default Meaning
ZSH_FNM_AUTOSTART false Automatically starts fnm for the session, running the fnm env
ZSH_FNM_USE_ON_CD true Switch the Node.js version based on the requirements of the current directory (recommended)

Check out the official documentation for the available fnm variables.