2020-12-31 11:07:28 +01:00
|
|
|
#!/usr/bin/env zsh
|
2020-12-09 17:59:12 +01:00
|
|
|
|
2020-12-31 11:07:28 +01:00
|
|
|
# common grc.zsh paths
|
|
|
|
files=(
|
2023-09-13 16:31:24 +02:00
|
|
|
/etc/grc.zsh # default
|
|
|
|
/usr/local/etc/grc.zsh # homebrew darwin-x64
|
|
|
|
/opt/homebrew/etc/grc.zsh # homebrew darwin-arm64
|
2020-12-09 17:59:12 +01:00
|
|
|
)
|
|
|
|
|
2020-12-31 11:07:28 +01:00
|
|
|
# verify the file is readable and source it
|
|
|
|
for file in $files; do
|
|
|
|
if [[ -r "$file" ]]; then
|
|
|
|
source "$file"
|
|
|
|
break
|
2020-12-09 17:59:12 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2020-12-31 11:07:28 +01:00
|
|
|
unset file files
|