aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@topo.tw>2023-01-26 20:36:55 +0800
committerHsieh Chin Fan <typebrook@topo.tw>2023-01-26 20:36:55 +0800
commitff0b7fe2d22f7ad93f838bc1fac96642f654dcec (patch)
treef137c020cbd1b7637bb5fdcdfba1ceea12acb693
parent2c8b2b2e7ecdedf41a37cc9b924404ea9e1bff80 (diff)
Update
-rw-r--r--zsh/zshrc8
1 files changed, 3 insertions, 5 deletions
diff --git a/zsh/zshrc b/zsh/zshrc
index c93175d..01e97cf 100644
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -2,9 +2,9 @@
2# load a random theme each time oh-my-zsh is loaded, in which case, 2# load a random theme each time oh-my-zsh is loaded, in which case,
3# to know which specific one was loaded, run: echo $RANDOM_THEME 3# to know which specific one was loaded, run: echo $RANDOM_THEME
4# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes 4# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
5#ZSH_THEME="archcraft" 5ZSH_THEME="archcraft"
6 6
7# typebrook/helper 7# helper repo
8export SETTING_DIR=$HOME/helper 8export SETTING_DIR=$HOME/helper
9source $SETTING_DIR/tools/init/load-settings.sh 9source $SETTING_DIR/tools/init/load-settings.sh
10fpath=($SETTING_DIR/zsh $fpath) 10fpath=($SETTING_DIR/zsh $fpath)
@@ -19,8 +19,6 @@ zstyle ':completion:*' menu select
19zstyle ':completion::complete:*' gain-privileges 1 19zstyle ':completion::complete:*' gain-privileges 1
20 20
21# PS1 with git status at right 21# PS1 with git status at right
22#autoload -U ps1; ps1
23alias ps1="vim $SETTING_DIR/zsh/ps1"
24autoload -Uz add-zsh-hook 22autoload -Uz add-zsh-hook
25add-zsh-hook precmd precmd 23add-zsh-hook precmd precmd
26function precmd() { 24function precmd() {
@@ -57,7 +55,6 @@ key[Shift-Tab]="${terminfo[kcbt]}"
57# setup key accordingly 55# setup key accordingly
58bindkey -- "\C-A" beginning-of-line 56bindkey -- "\C-A" beginning-of-line
59bindkey -- "\C-E" end-of-line 57bindkey -- "\C-E" end-of-line
60bindkey -- "${key[Insert]}" overwrite-mode
61bindkey -- "\C-d" delete-char 58bindkey -- "\C-d" delete-char
62bindkey -- "\C-h" backward-delete-char 59bindkey -- "\C-h" backward-delete-char
63bindkey -- "\Ed" delete-word 60bindkey -- "\Ed" delete-word
@@ -75,6 +72,7 @@ bindkey -- "\E." insert-last-word
75bindkey -- "${key[PageUp]}" beginning-of-buffer-or-history 72bindkey -- "${key[PageUp]}" beginning-of-buffer-or-history
76bindkey -- "${key[PageDown]}" end-of-buffer-or-history 73bindkey -- "${key[PageDown]}" end-of-buffer-or-history
77bindkey -- "${key[Shift-Tab]}" reverse-menu-complete 74bindkey -- "${key[Shift-Tab]}" reverse-menu-complete
75#bindkey -- "${key[Insert]}" overwrite-mode
78 76
79# Finally, make sure the terminal is in application mode, when zle is 77# Finally, make sure the terminal is in application mode, when zle is
80# active. Only then are the values from $terminfo valid. 78# active. Only then are the values from $terminfo valid.