feat(zsh): remove unused options

This commit is contained in:
AngeD 2023-11-09 15:59:30 +01:00
parent 16363a1f4a
commit fff2c1652b

View File

@ -1,7 +1,9 @@
autoload -U compinit colors autoload -U bashcompinit compinit colors
zmodload zsh/complist
fpath=("$ZDOTDIR/completions" $fpath) fpath=("$ZDOTDIR/completions" $fpath)
compinit -d "$XDG_CACHE_HOME/.zcompdump-$ZSH_VERSION" compinit -d "$XDG_CACHE_HOME/.zcompdump-$ZSH_VERSION"
bashcompinit
colors colors
@ -26,7 +28,6 @@ setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_SPACE setopt HIST_IGNORE_SPACE
setopt SHARE_HISTORY setopt SHARE_HISTORY
################# TODO ################3
export PAGER=less export PAGER=less
export LESS_TERMCAP_mb="${fg_bold[red]}" export LESS_TERMCAP_mb="${fg_bold[red]}"
export LESS_TERMCAP_md="${fg_bold[red]}" export LESS_TERMCAP_md="${fg_bold[red]}"
@ -39,26 +40,11 @@ export LESS_TERMCAP_ue="${reset_color}"
. <(dircolors) . <(dircolors)
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}" zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
# fixme - the load process here seems a bit bizarre
zmodload -i zsh/complist
WORDCHARS=''
# should this be in keybindings?
bindkey -M menuselect '^o' accept-and-infer-next-history
zstyle ':completion:*:*:*:*:*' menu select zstyle ':completion:*:*:*:*:*' menu select
zstyle ':completion:*' matcher-list 'r:|=*' 'l:|=* r:|=*' zstyle ':completion:*' matcher-list 'r:|=*' 'l:|=* r:|=*'
# Complete . and .. special directories
zstyle ':completion:*' special-dirs true
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01' zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01'
# disable named-directories autocompletion # disable named-directories autocompletion
zstyle ':completion:*:cd:*' tag-order local-directories directory-stack path-directories zstyle ':completion:*:cd:*' tag-order local-directories directory-stack path-directories
# automatically load bash completion functions
autoload -U +X bashcompinit && bashcompinit
# vim: ft=zsh # vim: ft=zsh