grc.plugin.zsh 408 B

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