improve zsh conf
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
HISTFILE="$HOME/.zsh_history"
|
||||
HISTSIZE=50000
|
||||
SAVEHOST=50000
|
||||
# setopt share_history # persist, and share live across open shells
|
||||
setopt inc_append_history # history of session appended to HISTFILE after session ends
|
||||
setopt share_history # persist, and share live across open shells
|
||||
# setopt inc_append_history # history of session appended to HISTFILE after session ends
|
||||
setopt extended_history # record timestamps
|
||||
setopt hist_ignore_dups # drop a command identical to the one before it
|
||||
setopt hist_ignore_space # don't record commands typed with a leading space
|
||||
@ -56,7 +56,10 @@ ZSH_PLUGINS_DIR="$HOME/.zsh/plugins"
|
||||
source "$ZSH_PLUGINS_DIR/zsh_autosuggestions/zsh-autosuggestions.zsh"
|
||||
source "$ZSH_PLUGINS_DIR/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
|
||||
|
||||
bindkey '^H' backward-kill-word
|
||||
bindkey '^H' backward-kill-word # Ctrl+Backspace - delete word
|
||||
bindkey '^[[3;5~' kill-word # Ctrl+Delete - delete forward word
|
||||
bindkey '^[[1;5C' forward-word # Ctrl+Right - jump forward a word
|
||||
bindkey '^[[1;5D' backward-word # Ctrl+Left - jump backward a word
|
||||
|
||||
eval "$(zoxide init zsh)"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user