aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2023-04-04 10:26:37 +0800
committerHsieh Chin Fan <pham@topo.tw>2023-04-04 10:26:37 +0800
commita2bb5e502b8931163335752e8d97fc3e66383108 (patch)
treeea69967cf65ab7b7354caa3d4713b690af142f60
parentb3e02e93106a04ec68c3566f850395f64e041f1b (diff)
Update
-rw-r--r--X11/alacritty/alacritty.yml2
-rw-r--r--zsh/zshrc9
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
diff --git a/zsh/zshrc b/zsh/zshrc
index d8044f1..830ff57 100644
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -66,8 +66,8 @@ alias d='dirs -v'
66for index ({1..9}) alias "$index"="cd +${index}"; unset index 66for 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
71typeset -g -A key 71typeset -g -A key
72 72
73key[Home]="${terminfo[khome]}" 73key[Home]="${terminfo[khome]}"
@@ -83,8 +83,11 @@ key[PageUp]="${terminfo[kpp]}"
83key[PageDown]="${terminfo[knp]}" 83key[PageDown]="${terminfo[knp]}"
84key[Shift-Tab]="${terminfo[kcbt]}" 84key[Shift-Tab]="${terminfo[kcbt]}"
85 85
86# setup key accordingly
87bindkey -- ${key[Shift-Tab]} reverse-menu-complete 86bindkey -- ${key[Shift-Tab]} reverse-menu-complete
87
88insert-first-word () { zle insert-last-word -- -1 1 }
89zle -N insert-first-word
90bindkey '^[,' 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