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=(
|
|
|
|
/etc/grc.zsh # default
|
|
|
|
/usr/local/etc/grc.zsh # homebrew
|
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
|