inital commit

This commit is contained in:
2026-03-23 23:50:58 +00:00
commit 503c232b30
110 changed files with 7218 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
updown_key() {
bindkey "${terminfo[kcuu1]}" history-substring-search-up
bindkey '\e[A' history-substring-search-up
bindkey '\e[B' history-substring-search-down
bindkey "${terminfo[kcud1]}" history-substring-search-down
}
zmodload zsh/terminfo
if [[ "$(antidote path zsh-users/zsh-history-substring-search 2> /dev/null)" ]]; then
call_file "$(antidote path zsh-users/zsh-history-substring-search 2> /dev/null)/zsh-history-substring-search.zsh" "anti-hst-file"
updown_key
elif [[ -e "$ZSH_CUSTOM/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh" ]]; then
call_file $ZSH_CUSTOM/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh "history substring" "substring-history"
updown_key
fi
HISTFILE=$HOME/.cache/.zsh_history
SAVEHIST=100000
HISTSIZE=100000
HISTIGNORE=ls:ll:cd:pwd:..:...:htop:reload:r:la
setopt inc_append_history
setopt hist_ignore_all_dups
setopt histignorespace
setopt extended_history
setopt share_history
setopt hist_verify
setopt hist_reduce_blanks
# bindkey "$terminfo[kcuu1]" history-substring-search-up
# bindkey "$terminfo[kcud1]" history-substring-search-down
# History search
# autoload -Uz up-line-or-beginning-search down-line-or-beginning-search
# zle -N up-line-or-beginning-search
# zle -N down-line-or-beginning-search
# [[ -n "$key[Up]" ]] && bindkey -- "$key[Up]" up-line-or-beginning-search
# [[ -n "$key[Down]" ]] && bindkey -- "$key[Down]" down-line-or-beginning-search
#setopt HIST_IGNORE_SPACE
# zsh-history-substring-search key bindings