1
0

Moved init to zshenv and disabled global compinit

This commit is contained in:
2026-02-08 12:45:26 +01:00
parent 45f5030dd1
commit 5d4b32d4d2
3 changed files with 11 additions and 7 deletions

5
.zshenv Normal file
View File

@@ -0,0 +1,5 @@
# Disable global autocomplete
skip_global_compinit=1
# Set ZFS Directory
ZDOTDIR=~/.config/zsh

11
.zshrc
View File

@@ -1,6 +1,3 @@
# Config folder
export ZSH=$HOME/.config/zsh
# History # History
export HISTFILE=$XDG_CACHE_HOME/zsh/.zsh_history export HISTFILE=$XDG_CACHE_HOME/zsh/.zsh_history
export HISTSIZE=10000 export HISTSIZE=10000
@@ -15,10 +12,12 @@ export SSH_AUTH_SOCK=/home/lumen/.bitwarden-ssh-agent.sock
export EDITOR="nvim" export EDITOR="nvim"
export VISUAL="nvim" export VISUAL="nvim"
# Disable Global autocomplete
export skip_global_compinit=1
# Autocomplete # Autocomplete
autoload -U compinit; compinit source $ZDOTDIR/modules/completion.zsh
source $ZSH/modules/completion.zsh
# Prompt # Prompt
fpath=($ZSH/modules $fpath) fpath=($ZDOTDIR/modules $fpath)
autoload -Uz prompt_init; prompt_init autoload -Uz prompt_init; prompt_init

View File

@@ -21,7 +21,7 @@ bindkey -M menuselect '^xh' accept-and-hold # Hold
bindkey -M menuselect '^xn' accept-and-infer-next-history # Next bindkey -M menuselect '^xn' accept-and-infer-next-history # Next
bindkey -M menuselect '^xu' undo # Undo bindkey -M menuselect '^xu' undo # Undo
autoload -U compinit; compinit autoload -U compinit; compinit -d $XDG_CACHE_HOME/zsh/.zcompdump
_comp_options+=(globdots) # With hidden files _comp_options+=(globdots) # With hidden files
# Only work with the Zsh function vman # Only work with the Zsh function vman