1
1
mirror of https://github.com/rywng/dotfiles.git synced 2024-11-21 18:31:49 +08:00

zsh: remove unnecessary plugins, and more hist size

This commit is contained in:
Ryan 2024-05-29 13:34:13 +08:00
parent 3275f28e19
commit bc2def55f0

18
.zshrc
View File

@ -25,7 +25,6 @@ zinit ice wait lucid atinit"bindkey '^ ' autosuggest-execute" atload'_zsh_autosu
zinit light zsh-users/zsh-autosuggestions
zinit light zsh-users/zsh-completions
zinit light zsh-users/zsh-history-substring-search
# Software
if ! command -v bat &> /dev/null ; then
@ -72,9 +71,9 @@ compinit
# End of lines added by compinstall
# Lines configured by zsh-newuser-install
HISTFILE=~/.cache/zhistory
HISTSIZE=8192
SAVEHIST=8192
setopt autocd autopushd extendedglob nomatch inc_append_history
HISTSIZE=16384
SAVEHIST=16384
setopt autocd autopushd extendedglob nomatch inc_append_history hist_ignore_dups
unsetopt beep notify
bindkey -e
# End of lines configured by zsh-newuser-install
@ -92,17 +91,6 @@ bindkey '' edit-command-line
autoload -Uz select-word-style
select-word-style bash
zmodload zsh/complist
bindkey -M menuselect 'h' vi-backward-char
bindkey -M menuselect 'k' vi-up-line-or-history
bindkey -M menuselect 'l' vi-forward-char
bindkey -M menuselect 'j' vi-down-line-or-history
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
bindkey '^P' history-substring-search-up
bindkey '^N' history-substring-search-down
bindkey ' ' magic-space
# config & cache location