Keep the server entrypoint focused on server policy while moving update checks, Antidote loading, interactive defaults, and prompt sourcing into reusable modules.
44 lines
1.1 KiB
Bash
44 lines
1.1 KiB
Bash
setopt interactivecomments
|
|
|
|
HISTSIZE=100000
|
|
SAVEHIST=100000
|
|
setopt EXTENDED_HISTORY
|
|
setopt INC_APPEND_HISTORY
|
|
setopt SHARE_HISTORY
|
|
setopt HIST_EXPIRE_DUPS_FIRST
|
|
setopt HIST_IGNORE_DUPS
|
|
setopt HIST_IGNORE_ALL_DUPS
|
|
setopt HIST_FIND_NO_DUPS
|
|
setopt HIST_IGNORE_SPACE
|
|
setopt HIST_SAVE_NO_DUPS
|
|
setopt HIST_REDUCE_BLANKS
|
|
|
|
bindkey '^q' clear-screen
|
|
(( $+commands[nvim] )) && alias vim=nvim
|
|
(( $+commands[nvim] )) && export EDITOR=nvim VISUAL=nvim
|
|
alias sudo='sudo '
|
|
alias ls='ls --color=always'
|
|
alias cgrep='grep --color=always'
|
|
alias cdiff='git diff --color-words --no-index'
|
|
|
|
delzip() {
|
|
unzip -Z -1 "$@" | xargs -I{} rm -rf {}
|
|
}
|
|
export MITMPROXY_SSLKEYLOGFILE='~/.mitmproxy/sslkeylogfile.txt'
|
|
|
|
unset ZSH_AUTOSUGGEST_USE_ASYNC
|
|
export LANG='en_US.UTF-8'
|
|
export LC_CTYPE='en_US.UTF-8'
|
|
export TIME_STYLE='long-iso'
|
|
|
|
pasteinit() {
|
|
OLD_SELF_INSERT=${${(s.:.)widgets[self-insert]}[2,3]}
|
|
zle -N self-insert url-quote-magic
|
|
}
|
|
pastefinish() {
|
|
zle -N self-insert "$OLD_SELF_INSERT"
|
|
}
|
|
zstyle :bracketed-paste-magic paste-init pasteinit
|
|
zstyle :bracketed-paste-magic paste-finish pastefinish
|
|
ZSH_AUTOSUGGEST_CLEAR_WIDGETS+=(bracketed-paste)
|