.zshrc 371 B

123456789101112131415161718
  1. __zshrc_try_source() \
  2. if [ -f "${1:?}" ] && [ -r "${1}" ]; then source "${1}"; fi
  3. __zshrc_try_source \
  4. "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
  5. () {
  6. local __f=''
  7. for __f in "${${(%):-%x}:A:h}/conf"/*.zsh; do source "${__f}"; done
  8. }
  9. __zshrc_try_source "${XDG_CONFIG_HOME:-${HOME}/.config}/shell/init.sh"
  10. unset -f __zshrc_try_source