February 12, 2024

I’ve been trying to force myself to learn about zsh since Apple switched the default shell (why, Apple, why?!). One of my biggest annoyances has been the unexpected munging of the Meta-Backspace combination. Bash got this right, but zsh does not.

In short, if you Meta-Backspace to delete a word, bash treats the forward slash as a word delimiter, where zsh does not.

I’m leaving this here for myself as a note on how to fix that. Simply put: edit your .zshrc, and add this:

autoload -Uz select-word-style
select-word-style bash

Sigh. One of these days I’ll get around to actually learning zsh. Either that or I’ll get fed up and switch back to bash on all my Macs…