grc.plugin.zsh 279 B

1234567891011121314151617
  1. #!/usr/bin/env zsh
  2. # common grc.zsh paths
  3. files=(
  4. /etc/grc.zsh # default
  5. /usr/local/etc/grc.zsh # homebrew
  6. )
  7. # verify the file is readable and source it
  8. for file in $files; do
  9. if [[ -r "$file" ]]; then
  10. source "$file"
  11. break
  12. fi
  13. done
  14. unset file files