diff --git a/.zshrc b/.zshrc index 1688bfb..bc35b97 100644 --- a/.zshrc +++ b/.zshrc @@ -146,11 +146,19 @@ unset fzf_bindings # ZVM_INSERT_MODE_CURSOR=$ZVM_CURSOR_BLINKING_BLOCK -# User configuration - source ~/.dotenv - source ${XDG_RUNTIME_DIR}/secrets/envs - source ~/.zsh/aliases.zsh - source ~/.zsh/functions.zsh + + local __tosrc=( + ~/.dotenv + ${XDG_RUNTIME_DIR}/secrets/envs + ~/.zsh/aliases.zsh + ~/.zsh/functions.zsh + ) + + for s in $__tosrc[@]; do + test -f $s && source $s + done + unset __tosrc + # You may need to manually set your language environment LANG=en_GB.UTF-8