Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add option to disable history use for autosuggestions#12863

Open
SquidBow wants to merge 2 commits into
fish-shell:masterfish-shell/fish-shell:masterfrom
SquidBow:autosuggestions_include_history_configSquidBow/fish-shell:autosuggestions_include_history_configCopy head branch name to clipboard
Open

Add option to disable history use for autosuggestions#12863
SquidBow wants to merge 2 commits into
fish-shell:masterfish-shell/fish-shell:masterfrom
SquidBow:autosuggestions_include_history_configSquidBow/fish-shell:autosuggestions_include_history_configCopy head branch name to clipboard

Conversation

@SquidBow

@SquidBow SquidBow commented Jul 6, 2026

Copy link
Copy Markdown

Added configuration to enable/disable the inclusion of history in autosuggestions

TODOs:

  • If addressing an issue, a commit message mentions Fixes issue #<issue-number>
  • Changes to fish usage are reflected in user documentation/manpages.
  • Tests have been added for regressions fixed
  • User-visible changes noted in CHANGELOG.rst

@krobelus

krobelus commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

any particular reason? Would set fish_history '' or set fish_history some_topic work for your use case?

@SquidBow

SquidBow commented Jul 6, 2026

Copy link
Copy Markdown
Author

any particular reason? Would set fish_history '' or set fish_history some_topic work for your use case?

I did try that and no.

The first problem is I want to keep history, it nice to be able to scroll back and use smth from before.

The second problem is that set fish_history '' doesn't stop fish from remembering commands from that instance. If I type, e.g. "touch file" and I start writing "tou" it will autosuggest the example even with hsitory set to nothing.

@SquidBow
SquidBow force-pushed the autosuggestions_include_history_config branch from b5f20b4 to ff8a677 Compare July 7, 2026 05:28
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.