mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-08-20 05:13:46 +00:00
updated keybindings style
This commit is contained in:
parent
807841a2d0
commit
4c7d42336b
1 changed files with 31 additions and 31 deletions
62
zshrc
62
zshrc
|
@ -151,48 +151,48 @@ bindkey ' ' magic-space
|
||||||
|
|
||||||
bindkey -M emacs '\ee' edit-command-line
|
bindkey -M emacs '\ee' edit-command-line
|
||||||
|
|
||||||
bindkey -M emacs '' history-incremental-search-forward
|
bindkey -M emacs '^P' history-incremental-search-forward
|
||||||
bindkey -M emacs '' history-incremental-search-backward
|
bindkey -M emacs '^N' history-incremental-search-backward
|
||||||
|
|
||||||
case $TERM in
|
case $TERM in
|
||||||
xterm*)
|
xterm*)
|
||||||
bindkey '^[[H' beginning-of-line
|
bindkey '\e[H' beginning-of-line
|
||||||
bindkey '^[[F' end-of-line
|
bindkey '\e[F' end-of-line
|
||||||
bindkey '^[OH' beginning-of-line
|
bindkey '\eOH' beginning-of-line
|
||||||
bindkey '^[OF' end-of-line
|
bindkey '\eOF' end-of-line
|
||||||
bindkey '^[[1~' beginning-of-line
|
bindkey '\e[1~' beginning-of-line
|
||||||
bindkey '^[[4~' end-of-line
|
bindkey '\e[4~' end-of-line
|
||||||
bindkey '^[[7~' beginning-of-line
|
bindkey '\e[7~' beginning-of-line
|
||||||
bindkey '^[[8~' end-of-line
|
bindkey '\e[8~' end-of-line
|
||||||
bindkey '^[[3~' delete-char
|
bindkey '\e[3~' delete-char
|
||||||
bindkey '^[[1;5C' emacs-forward-word
|
bindkey '\e[1;5C' emacs-forward-word
|
||||||
bindkey '^[[1;5D' emacs-backward-word
|
bindkey '\e[1;5D' emacs-backward-word
|
||||||
bindkey '^[[5C' emacs-forward-word
|
bindkey '\e[5C' emacs-forward-word
|
||||||
bindkey '^[[5D' emacs-backward-word
|
bindkey '\e[5D' emacs-backward-word
|
||||||
bindkey '^[OC' emacs-forward-word
|
bindkey '\eOC' emacs-forward-word
|
||||||
bindkey '^[OD' emacs-backward-word
|
bindkey '\eOD' emacs-backward-word
|
||||||
;;
|
;;
|
||||||
linux)
|
linux)
|
||||||
bindkey '^[[1~' beginning-of-line
|
bindkey '\e[1~' beginning-of-line
|
||||||
bindkey '^[[4~' end-of-line
|
bindkey '\e[4~' end-of-line
|
||||||
bindkey '^[[3~' delete-char
|
bindkey '\e[3~' delete-char
|
||||||
;;
|
;;
|
||||||
rxvt*)
|
rxvt*)
|
||||||
bindkey '^[[c' emacs-forward-word
|
bindkey '\e[c' emacs-forward-word
|
||||||
bindkey '^[[d' emacs-backward-word
|
bindkey '\e[d' emacs-backward-word
|
||||||
bindkey '^[Oc' emacs-forward-word
|
bindkey '\eOc' emacs-forward-word
|
||||||
bindkey '^[Od' emacs-backward-word
|
bindkey '\eOd' emacs-backward-word
|
||||||
bindkey '^[[3~' delete-char
|
bindkey '\e[3~' delete-char
|
||||||
bindkey '^[[7~' beginning-of-line
|
bindkey '\e[7~' beginning-of-line
|
||||||
bindkey '^[[8~' end-of-line
|
bindkey '\e[8~' end-of-line
|
||||||
;;
|
;;
|
||||||
interix)
|
interix)
|
||||||
bindkey '^[[H' beginning-of-line
|
bindkey '\e[H' beginning-of-line
|
||||||
bindkey '^[[U' end-of-line
|
bindkey '\e[U' end-of-line
|
||||||
;;
|
;;
|
||||||
cygwin)
|
cygwin)
|
||||||
bindkey '^[[1~' beginning-of-line
|
bindkey '\e[1~' beginning-of-line
|
||||||
bindkey '^[[4~' end-of-line
|
bindkey '\e[4~' end-of-line
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue