Fix not loading extra zsh files

This commit is contained in:
Alexander Navarro 2024-05-25 19:33:08 -04:00
parent 2b55b7cb69
commit 0b0dbed47a
7 changed files with 30 additions and 69 deletions

View file

@ -115,12 +115,24 @@ zstyle ':completion:*' menu no
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'ls --color $realpath'
zstyle ':fzf-tab:complete:__zoxide_z:*' fzf-preview 'ls --color $realpath'
# ╭──────────────────────────────────────────────────────────╮
# │ ZSH Options │
# ╰──────────────────────────────────────────────────────────╯
setopt EXTENDED_GLOB
setopt DOT_GLOB
setopt GLOB_DOTS
# ╭──────────────────────────────────────────────────────────╮
# │ Source other files │
# ╰──────────────────────────────────────────────────────────╯
source $HOME/.config/zsh/**/*.zsh
source $HOME/.config/fzf/fzfrc
# this prevents errors and not loading some files
for file in $HOME/.config/zsh/**/*.zsh; do
source $file
done
# ╭──────────────────────────────────────────────────────────╮
# │ Init external programs │
# ╰──────────────────────────────────────────────────────────╯