#!/usr/bin/env zsh # # Author : Dennis Eriksen # File : include # Created : 2024-09-10 # ################################################################################ # # This file is autoloaded by .zshrc, and actually loaded when executed # ################################################################################ # Source a file if it exist. If more than one file is provided, the first file # that is found will be sourced. emulate -L zsh for f in $@; do if [[ -e $f.zwc || -e $f ]]; then source $f return fi done # If we got here, we couldn't source any files return 1 # END OF FILE #################################################################