Moved init to zshenv and disabled global compinit
This commit is contained in:
5
.zshenv
Normal file
5
.zshenv
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# Disable global autocomplete
|
||||||
|
skip_global_compinit=1
|
||||||
|
|
||||||
|
# Set ZFS Directory
|
||||||
|
ZDOTDIR=~/.config/zsh
|
||||||
11
.zshrc
11
.zshrc
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user