Skip to content

feat: fish shell support for venv activation instructions#45

Merged
isaacbmiller merged 1 commit intomainfrom
isaac/fish-shell-support
Feb 28, 2026
Merged

feat: fish shell support for venv activation instructions#45
isaacbmiller merged 1 commit intomainfrom
isaac/fish-shell-support

Conversation

@isaacbmiller
Copy link
Copy Markdown
Contributor

Summary

Adds fish shell detection so CLI messages show the correct venv activation command for the user's shell.

Problem: Fish shell users see source .venv/bin/activate which fails because fish requires source .venv/bin/activate.fish instead (see #36).

Changes:

  • Added detect_shell() utility that checks FISH_VERSION env var and SHELL path to identify fish, zsh, bash, or falls back to sh
  • Added venv_activate_command() that returns the shell-appropriate activation command
  • Updated show_venv_warning() and runner.py discovery hint to use shell-aware activation commands
  • Added 8 tests covering shell detection and activation command generation

Closes #36

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 24feb5af5e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/dspy_cli/server/runner.py
Detect the user's shell (fish, zsh, bash) and show the correct
venv activation command. Fish shell users now see
'source .venv/bin/activate.fish' instead of the bash-only
'source .venv/bin/activate'.

Closes #36

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
@isaacbmiller isaacbmiller force-pushed the isaac/fish-shell-support branch from 24feb5a to 5010f66 Compare February 28, 2026 20:42
@isaacbmiller isaacbmiller merged commit 7ed3b54 into main Feb 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feature: fish shell support

1 participant