1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2026-04-18 13:24:04 +00:00

editor: use keymap array instead of word splitting

This commit is contained in:
Indrajit Raychaudhuri
2026-03-22 01:44:23 -05:00
parent 9916799a0d
commit e5444ce534

View File

@@ -83,8 +83,8 @@ zle -N edit-command-line
# Runs bindkey but for all of the keymaps. Running it with no arguments will
# print out the mappings for all of the keymaps.
function bindkey-all {
local keymap=''
for keymap in $(bindkey -l); do
local keymap
for keymap in "${(@f)$(bindkey -l)}"; do
[[ "$#" -eq 0 ]] && printf "#### %s\n" "${keymap}" 1>&2
bindkey -M "${keymap}" "$@"
done