Skip to content

Add Fish shell integration support #713

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

tsvikas
Copy link

@tsvikas tsvikas commented Jul 7, 2025

Summary

This PR adds Fish shell integration support to shell_gpt, implementing the functionality requested in issue #447.

Changes

  • Fish shell integration code: Added Fish shell integration with Ctrl+O hotkey binding in sgpt/integration.py
  • Installation command support: Updated sgpt --install_shell_integration to work with Fish shell in sgpt/app.py and sgpt/utils.py
  • README documentation: Updated shell integration section to include Fish shell instructions

Features

  • Ctrl+O hotkey binding for Fish shell users (in Fish, Ctrl+L is already used)
  • Visual feedback with hourglass icon during processing
  • Retains original prompt as comment for easy reference (removable with Ctrl+K)

Testing

The integration has been tested with Fish shell and works as expected with the standard shell_gpt workflow.

Fixes #447

tsvikas added 4 commits July 7, 2025 13:34
Add Fish shell integration code with Ctrl+O hotkey binding.
The integration includes visual feedback with an hourglass icon during processing,
and retains the original prompt as a comment for easy reference (easily removed with Ctrl+K).
Now, `sgpt --install_shell_integration` works on Fish shell.
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.

Add shell integration for Fish
1 participant