I found the following command in my .zshrc
, probably copied from some website:
bindkey " " magic-space # do history expansion on space
The manpages are about as helpful as the very succinct comment:
magic-space
Perform history expansion and insert a space into the buffer. [...]
So what does magic-space
actually do? Under which circumstances can I see this history expansion in action?
.oh-my-zsh/lib/key-bindings.zsh
with some misleading comment:bindkey ' ' magic-space # [Space] - don't do history expansion
– Daniel Kaplan Apr 06 '23 at 08:11