diff options
| -rw-r--r-- | X11/alacritty/alacritty.yml | 2 | ||||
| -rw-r--r-- | zsh/zshrc | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/X11/alacritty/alacritty.yml b/X11/alacritty/alacritty.yml index 7233dca..4c18df5 100644 --- a/X11/alacritty/alacritty.yml +++ b/X11/alacritty/alacritty.yml | |||
| @@ -23,7 +23,7 @@ window: | |||
| 23 | 23 | ||
| 24 | padding: | 24 | padding: |
| 25 | x: 24 | 25 | x: 24 |
| 26 | y: 12 | 26 | y: 4 |
| 27 | 27 | ||
| 28 | decorations: full | 28 | decorations: full |
| 29 | startup_mode: Windowed | 29 | startup_mode: Windowed |
| @@ -66,8 +66,8 @@ alias d='dirs -v' | |||
| 66 | for index ({1..9}) alias "$index"="cd +${index}"; unset index | 66 | for index ({1..9}) alias "$index"="cd +${index}"; unset index |
| 67 | 67 | ||
| 68 | 68 | ||
| 69 | # create a zkbd compatible hash; | 69 | # Create a zkbd compatible hash |
| 70 | # to add other keys to this hash, see: man 5 terminfo | 70 | # To add other keys to this hash, see: man 5 terminfo |
| 71 | typeset -g -A key | 71 | typeset -g -A key |
| 72 | 72 | ||
| 73 | key[Home]="${terminfo[khome]}" | 73 | key[Home]="${terminfo[khome]}" |
| @@ -83,8 +83,11 @@ key[PageUp]="${terminfo[kpp]}" | |||
| 83 | key[PageDown]="${terminfo[knp]}" | 83 | key[PageDown]="${terminfo[knp]}" |
| 84 | key[Shift-Tab]="${terminfo[kcbt]}" | 84 | key[Shift-Tab]="${terminfo[kcbt]}" |
| 85 | 85 | ||
| 86 | # setup key accordingly | ||
| 87 | bindkey -- ${key[Shift-Tab]} reverse-menu-complete | 86 | bindkey -- ${key[Shift-Tab]} reverse-menu-complete |
| 87 | |||
| 88 | insert-first-word () { zle insert-last-word -- -1 1 } | ||
| 89 | zle -N insert-first-word | ||
| 90 | bindkey '^[,' insert-first-word | ||
| 88 | #bindkey -- "\C-A" beginning-of-line | 91 | #bindkey -- "\C-A" beginning-of-line |
| 89 | #bindkey -- "\C-E" end-of-line | 92 | #bindkey -- "\C-E" end-of-line |
| 90 | #bindkey -- "\C-d" delete-char | 93 | #bindkey -- "\C-d" delete-char |