Browse Source

zsh keybindings

master
Dirk Alders 1 year ago
parent
commit
11624cffb6
1 changed files with 15 additions and 13 deletions
  1. 15
    13
      .zshrc

+ 15
- 13
.zshrc View File

@@ -19,19 +19,21 @@ WORDCHARS=${WORDCHARS//\/} # Don't consider certain characters part of the word
19 19
 # hide EOL sign ('%')
20 20
 PROMPT_EOL_MARK=""
21 21
 
22
-# configure key keybindings
23
-bindkey -e                                        # emacs key bindings
24
-bindkey ' ' magic-space                           # do history expansion on space
25
-bindkey '^U' backward-kill-line                   # ctrl + U
26
-bindkey '^[[3;5~' kill-word                       # ctrl + Supr
27
-bindkey '^[[3~' delete-char                       # delete
28
-bindkey '^[[1;5C' forward-word                    # ctrl + ->
29
-bindkey '^[[1;5D' backward-word                   # ctrl + <-
30
-bindkey '^[[5~' beginning-of-buffer-or-history    # page up
31
-bindkey '^[[6~' end-of-buffer-or-history          # page down
32
-bindkey "${terminfo[khome]}" beginning-of-line    # home
33
-bindkey "${terminfo[kend]}" end-of-line           # end
34
-bindkey '^[[Z' undo                               # shift + tab undo last action
22
+# configure key keybindings - Identify keys with: sudo showkey -a
23
+bindkey -e                                      # emacs key bindings
24
+bindkey ' ' magic-space                         # do history expansion on space
25
+bindkey '^U' backward-kill-line                 # ctrl + U
26
+bindkey '^[[3;5~' kill-word                     # ctrl + Supr
27
+bindkey '^[[3~' delete-char                     # delete
28
+bindkey '^[[1;5C' forward-word                  # ctrl + ->
29
+bindkey '^[[1;5D' backward-word                 # ctrl + <-
30
+bindkey '^[[5~' beginning-of-buffer-or-history  # page up
31
+bindkey '^[[6~' end-of-buffer-or-history        # page down
32
+bindkey "^[[H" beginning-of-line                # home
33
+bindkey "^[[1~" beginning-of-line               # home
34
+bindkey "^[[4~" end-of-line                     # end
35
+bindkey "^[[F" end-of-line                      # end
36
+bindkey '^[[Z' undo                             # shift + tab undo last action
35 37
 
36 38
 # enable completion features
37 39
 autoload -Uz compinit

Loading…
Cancel
Save