# ⚡ Fix Agent Shell Warnings - 1 Minute

## Problem
```
Your user's .npmrc file has a `prefix` setting, which are incompatible with nvm.
nvm is not compatible with the "NPM_CONFIG_PREFIX" environment variable
```

## Solution (30 seconds)

```bash
# Run this script
~/Documents/MyRoadTrip/scripts/fix-shell-for-agents.sh
```

**What it does:**
1. ✅ Backs up your `.zshrc`
2. ✅ Makes NVM load only in interactive shells
3. ✅ Removes NPM_CONFIG_PREFIX for non-interactive shells
4. ✅ Keeps everything working for normal terminal use

## Test It Works

```bash
# Should show NO warnings
zsh -lc 'echo "test"'

# Should work normally
rg "pattern" file.ts
```

## Performance Gain

**Before:**
```
$ time zsh -lc 'rg "pattern" file.ts'
[NVM warnings...]
real    0m0.492s
```

**After:**
```
$ time zsh -lc 'rg "pattern" file.ts'
real    0m0.050s  # 🚀 10x faster!
```

## Done!

Your shell is now optimized for AI agents. No more warnings, 10x faster startup.
