diff options
author | Hsieh Chin Fan <typebrook@topo.tw> | 2023-01-26 20:36:55 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@topo.tw> | 2023-01-26 20:36:55 +0800 |
commit | ff0b7fe2d22f7ad93f838bc1fac96642f654dcec (patch) | |
tree | f137c020cbd1b7637bb5fdcdfba1ceea12acb693 | |
parent | 2c8b2b2e7ecdedf41a37cc9b924404ea9e1bff80 (diff) |
Update
-rw-r--r-- | zsh/zshrc | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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" | 5 | ZSH_THEME="archcraft" |
6 | 6 | ||
7 | # typebrook/helper | 7 | # helper repo |
8 | export SETTING_DIR=$HOME/helper | 8 | export SETTING_DIR=$HOME/helper |
9 | source $SETTING_DIR/tools/init/load-settings.sh | 9 | source $SETTING_DIR/tools/init/load-settings.sh |
10 | fpath=($SETTING_DIR/zsh $fpath) | 10 | fpath=($SETTING_DIR/zsh $fpath) |
@@ -19,8 +19,6 @@ zstyle ':completion:*' menu select | |||
19 | zstyle ':completion::complete:*' gain-privileges 1 | 19 | zstyle ':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 | ||
23 | alias ps1="vim $SETTING_DIR/zsh/ps1" | ||
24 | autoload -Uz add-zsh-hook | 22 | autoload -Uz add-zsh-hook |
25 | add-zsh-hook precmd precmd | 23 | add-zsh-hook precmd precmd |
26 | function precmd() { | 24 | function precmd() { |
@@ -57,7 +55,6 @@ key[Shift-Tab]="${terminfo[kcbt]}" | |||
57 | # setup key accordingly | 55 | # setup key accordingly |
58 | bindkey -- "\C-A" beginning-of-line | 56 | bindkey -- "\C-A" beginning-of-line |
59 | bindkey -- "\C-E" end-of-line | 57 | bindkey -- "\C-E" end-of-line |
60 | bindkey -- "${key[Insert]}" overwrite-mode | ||
61 | bindkey -- "\C-d" delete-char | 58 | bindkey -- "\C-d" delete-char |
62 | bindkey -- "\C-h" backward-delete-char | 59 | bindkey -- "\C-h" backward-delete-char |
63 | bindkey -- "\Ed" delete-word | 60 | bindkey -- "\Ed" delete-word |
@@ -75,6 +72,7 @@ bindkey -- "\E." insert-last-word | |||
75 | bindkey -- "${key[PageUp]}" beginning-of-buffer-or-history | 72 | bindkey -- "${key[PageUp]}" beginning-of-buffer-or-history |
76 | bindkey -- "${key[PageDown]}" end-of-buffer-or-history | 73 | bindkey -- "${key[PageDown]}" end-of-buffer-or-history |
77 | bindkey -- "${key[Shift-Tab]}" reverse-menu-complete | 74 | bindkey -- "${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. |