Confusion about the history --contains docs description
Author: page-downCreated Dec 12, 2021Updated Sep 14, 2026
I found inconsistencies in the description of history --contains in the documentation.
history
`delete` ... The `--contains` search option will be used if you don't specify a different search option.
The following options are available:
-c or --contains ... This is not currently supported by the delete subcommand.
Does the documentation need to be updated?
Also, I found that when using history delete --contains, it defaults to 100 records and the new one is at the top. This causes you need to page up to confirm the required number.
I suggest that in this case the order could be reversed and the numbering could also be in descending order. This way you can immediately confirm the most recently entered command number that needs to be deleted.
> history delete --contains <text>
[100] oldest ...
[99] ...
...
[2] ...
[1] latest
Delete which entries? >-R or --reverse does not work with history delete.
Source: fish-shell/fish-shell