mirror of
https://github.com/rywng/dotfiles.git
synced 2024-11-22 10:51:49 +08:00
zsh: remove unnecessary plugins, and more hist size
This commit is contained in:
parent
3275f28e19
commit
bc2def55f0
18
.zshrc
18
.zshrc
@ -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-autosuggestions
|
||||||
|
|
||||||
zinit light zsh-users/zsh-completions
|
zinit light zsh-users/zsh-completions
|
||||||
zinit light zsh-users/zsh-history-substring-search
|
|
||||||
|
|
||||||
# Software
|
# Software
|
||||||
if ! command -v bat &> /dev/null ; then
|
if ! command -v bat &> /dev/null ; then
|
||||||
@ -72,9 +71,9 @@ compinit
|
|||||||
# End of lines added by compinstall
|
# End of lines added by compinstall
|
||||||
# Lines configured by zsh-newuser-install
|
# Lines configured by zsh-newuser-install
|
||||||
HISTFILE=~/.cache/zhistory
|
HISTFILE=~/.cache/zhistory
|
||||||
HISTSIZE=8192
|
HISTSIZE=16384
|
||||||
SAVEHIST=8192
|
SAVEHIST=16384
|
||||||
setopt autocd autopushd extendedglob nomatch inc_append_history
|
setopt autocd autopushd extendedglob nomatch inc_append_history hist_ignore_dups
|
||||||
unsetopt beep notify
|
unsetopt beep notify
|
||||||
bindkey -e
|
bindkey -e
|
||||||
# End of lines configured by zsh-newuser-install
|
# End of lines configured by zsh-newuser-install
|
||||||
@ -92,17 +91,6 @@ bindkey '' edit-command-line
|
|||||||
autoload -Uz select-word-style
|
autoload -Uz select-word-style
|
||||||
select-word-style bash
|
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
|
bindkey ' ' magic-space
|
||||||
|
|
||||||
# config & cache location
|
# config & cache location
|
||||||
|
Loading…
Reference in New Issue
Block a user