bindkey '^P' history-search-backward
bindkey ' ' magic-space # also do history expansion on space
-bindkey -s '^[l' '\11ls\r' # show dir content
+bindkey -s '^[l' '^Qls\r' # show dir content
+bindkey -s '^Z' '^Qfg\r' # fg with ^Z
bindkey '^[[Z' reverse-menu-complete
# delay after ESC (in 0.01s)
export KEYTIMEOUT=40
+# fix Home/End keys
+bindkey '^[[7~' beginning-of-line
+bindkey '^[[8~' end-of-line
+
# emacs bindings
bindkey '^A' beginning-of-line
bindkey '^B' backward-char