1. Introduction §
In a recent change within fish shell, the shortcut to delete last words were replaced by "delete last big chunk" (I don't know exactly how it is called in this case) which is usually the default behavior on Mac OS "command" key vs "alt" key and I guess it is why it was changed like this on fish.
Unfortunately, this broke everyone's habit and a standard keyboard do not even offer the new keybinding that received the old behavior.
There is an open issue asking to revert this change.
GitHub fish project: Revert alt-backspace behaviour on non-macOS systems #12122
I am using this snippet in ~/.config/fish/config.fish to restore the previous behavior (the same as in other all other shell, where M-d deletes last word). I build it from the GitHub issue comments, I had to add $argv for some reasons.
if status is-interactive
# Commands to run in interactive sessions can go here
# restore delete behavior
bind $argv alt-backspace backward-kill-word
bind $argv alt-delete kill-word
bind $argv ctrl-alt-h backward-kill-word
bind $argv ctrl-backspace backward-kill-token
bind $argv ctrl-delete kill-token
end