multiAI Summary Pending

nvm-setup

Configure shell initialization files so nvm loads correctly in bash, zsh, and fish. Covers NVM_DIR, nvm.sh sourcing, profile file selection, XDG_CONFIG_HOME, and bash completion. Use when the user reports nvm not found after installation, needs to configure shell profiles, or wants to set up nvm environment variables.

223 stars

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/nvm-setup/SKILL.md --create-dirs "https://raw.githubusercontent.com/partme-ai/full-stack-skills/main/skills/nvm-skills/nvm-setup/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/nvm-setup/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How nvm-setup Compares

Feature / Agentnvm-setupStandard Approach
Platform SupportmultiLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Configure shell initialization files so nvm loads correctly in bash, zsh, and fish. Covers NVM_DIR, nvm.sh sourcing, profile file selection, XDG_CONFIG_HOME, and bash completion. Use when the user reports nvm not found after installation, needs to configure shell profiles, or wants to set up nvm environment variables.

Which AI agents support this skill?

This skill is compatible with multi.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# nvm Shell Setup

Configure shell profiles so nvm loads automatically on every new terminal session.

## Workflow

1. **Identify the shell and profile file:**
   - bash: `~/.bashrc` (or `~/.bash_profile` on macOS)
   - zsh: `~/.zshrc`
   - fish: `~/.config/fish/config.fish`
   - With XDG_CONFIG_HOME: `$XDG_CONFIG_HOME/bash/bashrc` etc.

2. **Add nvm initialization** to the correct profile:
   ```bash
   # Required lines for bash/zsh:
   export NVM_DIR="$HOME/.nvm"
   [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
   [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
   ```

3. **Optional: Load nvm without switching versions** (faster shell startup):
   ```bash
   [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" --no-use
   ```

4. **Verify nvm loads** in a new shell:
   ```bash
   # Open a new terminal, then:
   command -v nvm    # Should print "nvm"
   nvm --version     # Should print version number
   ```

**Notes:**
- XDG_CONFIG_HOME changes the expected profile path.
- Use `--no-use` when you only want nvm loaded without switching versions.
- For installation, use the nvm-install skill. For version usage, use nvm-usage-basics.

### Example file map

- `templates/shell-config.md` - Profile configuration templates
- `examples/environment-variables.md` - Environment variable reference
- `examples/bash-completion.md` - Bash completion setup
- `examples/bash-completion-usage.md` - Completion usage examples

## Keywords

nvm setup, NVM_DIR, nvm.sh, profile, bash, zsh, fish, XDG_CONFIG_HOME, shell init