mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 02:13:38 +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
|
end
|
||||||
|
|
||||||
test -z "$search_mode"
|
test -z "$search_mode"
|
||||||
and set search_mode "--contains"
|
and set search_mode "--exact"
|
||||||
|
|
||||||
if test $search_mode = "--exact"
|
if test $search_mode = "--exact"
|
||||||
builtin history delete $search_mode $_flag_case_sensitive $searchterm
|
builtin history delete $search_mode $_flag_case_sensitive $searchterm
|
||||||
|
|
Loading…
Reference in New Issue
Block a user