feat: add transient prompt support (Fish 4.1.0+)#389
Merged
edouard-lopez merged 11 commits intomasterfrom Dec 2, 2025
Merged
Conversation
Copilot
AI
changed the title
[WIP] Add transient prompt implementation for fish shell
feat: add transient prompt support (Fish 4.1.0+)
Nov 25, 2025
Implemented in Fish 4.1.0 Official doc: https://fishshell.com/docs/4.1/prompt.html#transient-prompt Powerlevel10k: https://github.com/romkatv/powerlevel10k/#transient-prompt
ef67500 to
d40f124
Compare
224765d to
c6bd64d
Compare
84ab891 to
f0bc9b2
Compare
* disable checkPhase for CI, we run test separately * mock `id` value for NixOS context * run before_each hook * correct `_mock_response` argument
f0bc9b2 to
61eafe3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
related: fixes Transient prompt #206
Implements transient prompt using Fish 4.1.0's native
fish_transient_promptfeature. When enabled, previous prompts are replaced with just the prompt symbol (❯), removing stale contextual info (git status, path) from terminal history.How to test pre-release?
Requires Fish 4.1.0+.
First contribution?
Check the 👍 contributing guide for code and naming conventions.
Specs
New config in
conf.d/pure.fishNew function
_pure_transient_prompt.fishRenders simplified prompt (colored symbol only) when
fish_prompt --final-renderingis called.Documentation
Usage
Acceptance Checks
conf.d/pure.fishfor:tests/_pure_transient_prompt.test.fish;Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.