# history expansion on pressing space
bindkey ' ' magic-space
-# prefix search (up to cursor position)
-bindkey '^xp' history-beginning-search-backward
-bindkey '^xn' history-beginning-search-forward
-
# repeat the previous shell-word ($WORDCHARS)
bindkey '\e=' copy-prev-shell-word