iTerm2 Go to iTerm > Preferences... > Keys Add a Global Shortcut Key Type the delete key as Shortcut Select Send Hex Codes as Action and type 0x004 Click on OK and you're good to go zsh bindkey "^D" delete-char
Thank you for this