Skip to content

PAI 3.0 installer does not update fish shell config #688

@michaelaye

Description

@michaelaye

Summary

The PAI 3.0 installer correctly detects fish shell during installation but only updates ~/.zshrc with the new pai alias. It does not update the fish shell config at ~/.config/fish/config.fish.

Steps to Reproduce

  1. Have fish shell as your default shell (the installer even detects this)
  2. Run the PAI 3.0 installer
  3. Open a new fish shell session
  4. Run pai

Expected Behavior

The pai command works, pointing to ~/.claude/skills/PAI/Tools/pai.ts.

Actual Behavior

error: Module not found "/Users/<user>/.claude/skills/CORE/tools/PAI.ts"

The old PAI 2.x fish function (pointing to CORE/tools/PAI.ts) is still in place. The installer added the correct alias to ~/.zshrc but did not update the fish config.

What the Installer Should Do

When fish shell is detected, the installer should update ~/.config/fish/config.fish by either:

  1. Adding/replacing the pai function:
    function pai
        bun ~/.claude/skills/PAI/Tools/pai.ts $argv
    end
  2. Or using a fish abbreviation:
    abbr -a pai 'bun ~/.claude/skills/PAI/Tools/pai.ts'

Note: Fish shell uses function/end blocks or abbr, not bash-style alias commands.

Workaround

Manually edit ~/.config/fish/config.fish and replace the old function with the correct path.

Environment

  • macOS (Darwin)
  • Fish shell (detected by installer)
  • PAI 3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions