mirror of
https://github.com/dcarrillo/prezto.git
synced 2026-04-19 08:44:06 +00:00
editor: use keymap array instead of word splitting
This commit is contained in:
@@ -83,8 +83,8 @@ zle -N edit-command-line
|
|||||||
# Runs bindkey but for all of the keymaps. Running it with no arguments will
|
# Runs bindkey but for all of the keymaps. Running it with no arguments will
|
||||||
# print out the mappings for all of the keymaps.
|
# print out the mappings for all of the keymaps.
|
||||||
function bindkey-all {
|
function bindkey-all {
|
||||||
local keymap=''
|
local keymap
|
||||||
for keymap in $(bindkey -l); do
|
for keymap in "${(@f)$(bindkey -l)}"; do
|
||||||
[[ "$#" -eq 0 ]] && printf "#### %s\n" "${keymap}" 1>&2
|
[[ "$#" -eq 0 ]] && printf "#### %s\n" "${keymap}" 1>&2
|
||||||
bindkey -M "${keymap}" "$@"
|
bindkey -M "${keymap}" "$@"
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user