diff --git a/.zshrc b/.zshrc index 75d9cb2..f5c807c 100644 --- a/.zshrc +++ b/.zshrc @@ -19,19 +19,21 @@ WORDCHARS=${WORDCHARS//\/} # Don't consider certain characters part of the word # hide EOL sign ('%') PROMPT_EOL_MARK="" -# configure key keybindings -bindkey -e # emacs key bindings -bindkey ' ' magic-space # do history expansion on space -bindkey '^U' backward-kill-line # ctrl + U -bindkey '^[[3;5~' kill-word # ctrl + Supr -bindkey '^[[3~' delete-char # delete -bindkey '^[[1;5C' forward-word # ctrl + -> -bindkey '^[[1;5D' backward-word # ctrl + <- -bindkey '^[[5~' beginning-of-buffer-or-history # page up -bindkey '^[[6~' end-of-buffer-or-history # page down -bindkey "${terminfo[khome]}" beginning-of-line # home -bindkey "${terminfo[kend]}" end-of-line # end -bindkey '^[[Z' undo # shift + tab undo last action +# configure key keybindings - Identify keys with: sudo showkey -a +bindkey -e # emacs key bindings +bindkey ' ' magic-space # do history expansion on space +bindkey '^U' backward-kill-line # ctrl + U +bindkey '^[[3;5~' kill-word # ctrl + Supr +bindkey '^[[3~' delete-char # delete +bindkey '^[[1;5C' forward-word # ctrl + -> +bindkey '^[[1;5D' backward-word # ctrl + <- +bindkey '^[[5~' beginning-of-buffer-or-history # page up +bindkey '^[[6~' end-of-buffer-or-history # page down +bindkey "^[[H" beginning-of-line # home +bindkey "^[[1~" beginning-of-line # home +bindkey "^[[4~" end-of-line # end +bindkey "^[[F" end-of-line # end +bindkey '^[[Z' undo # shift + tab undo last action # enable completion features autoload -Uz compinit