An oh-my-zsh plugin that provides enhancement to the Node.js version manager fnm.
- Delete fnm's per-session symlinks (
$FNM_MULTISHELL_PATH) after shell exit to avoid dangling symlinks. - Add
fnm upgrade [MAJOR]command to upgrade installed Node.js major versions to their latest versions.
- Clone this repository into
$ZSH_CUSTOM/plugins(by default~/.oh-my-zsh/custom/plugins)
git clone https://github.com/sukkaw/zsh-fnm ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-fnm- Add the plugin to the list of plugins for oh-my-zsh to load (inside
~/.zshrc):
plugins=(
[plugins
...]
zsh-fnm
)
- Append
zsh_fnmto the end of your.zshrc(or anywhere after your fnm is already initialized) to initialize this plugin:
zsh_fnm- Start a new terminal session.
Antigen is a zsh plugin manager, and it support oh-my-zsh plugin as well. You only need to add antigen bundle sukkaw/zsh-fnm to your .zshrc with your other bundle commands if you are using Antigen. Antigen will handle cloning the plugin for you automatically the next time you start zsh. You can also add the plugin to a running zsh with antigen bundle sukkaw/zsh-fnm for testing before adding it to your .zshrc.
fnm upgrade helpzsh-fnm © Sukka, Authored and maintained by Sukka with help from contributors (list).
Personal Website · Blog · GitHub @SukkaW · Telegram Channel @SukkaChannel · Twitter @isukkaw · Mastodon @sukka@acg.mn · BlueSky @skk.moe