mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 15:37:59 +08:00
history: implement exact matching by default for delete
Brings behaviour into line with documented and intended behaviour. Closes #6070.
This commit is contained in:
parent
8b84f4f117
commit
54ed2ad440
|
@ -109,7 +109,7 @@ function history --description "display or manipulate interactive command histor
|
|||
end
|
||||
|
||||
test -z "$search_mode"
|
||||
and set search_mode "--contains"
|
||||
and set search_mode "--exact"
|
||||
|
||||
if test $search_mode = "--exact"
|
||||
builtin history delete $search_mode $_flag_case_sensitive $searchterm
|
||||
|
|
Loading…
Reference in New Issue
Block a user