zshrc: clean keyboard maps, add Ctrl+arrow word skip
This commit is contained in:
parent
ecf112630c
commit
57a0770d9f
1 changed files with 8 additions and 14 deletions
|
@ -277,20 +277,14 @@ source /usr/share/over-env/prompt-init
|
||||||
export PYTHONSTARTUP="/usr/share/over-env/python-startup.py"
|
export PYTHONSTARTUP="/usr/share/over-env/python-startup.py"
|
||||||
|
|
||||||
# keyboard stuff
|
# keyboard stuff
|
||||||
bindkey "\e[1~" beginning-of-line
|
bindkey "\e[3~" delete-char # Delete
|
||||||
bindkey "\e[2~" quoted-insert
|
bindkey "\e[1~" beginning-of-line # Home
|
||||||
bindkey "\e[3~" delete-char
|
bindkey "\e[4~" end-of-line # End
|
||||||
bindkey "\e[4~" end-of-line
|
bindkey "\e[5~" beginning-of-history # PgUp
|
||||||
bindkey "\e[5~" beginning-of-history
|
bindkey "\e[6~" end-of-history # PgDn
|
||||||
bindkey "\e[6~" end-of-history
|
bindkey "\e[1;5D" backward-word # Ctrl ←
|
||||||
bindkey "\e[7~" beginning-of-line
|
bindkey "\e[1;5C" forward-word # Ctrl →
|
||||||
bindkey "\e[8~" end-of-line
|
|
||||||
bindkey "\e[H" beginning-of-line
|
|
||||||
bindkey "\e[F" end-of-line
|
|
||||||
bindkey "\eOH" beginning-of-line
|
|
||||||
bindkey "\eOF" end-of-line
|
|
||||||
bindkey "\eOd" backward-word
|
|
||||||
bindkey "\eOc" forward-word
|
|
||||||
|
|
||||||
# load syntax highlighting if available; Gentoo and Arch paths are tried
|
# load syntax highlighting if available; Gentoo and Arch paths are tried
|
||||||
for HPATH in "/usr/share/zsh/site-functions/zsh-syntax-highlighting.zsh" "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
|
for HPATH in "/usr/share/zsh/site-functions/zsh-syntax-highlighting.zsh" "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue