mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 19:41:15 -03: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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user