ohmyzsh/plugins/grc/grc.plugin.zsh
2023-09-13 16:31:24 +02:00

18 lines
349 B
Bash

#!/usr/bin/env zsh
# common grc.zsh paths
files=(
/etc/grc.zsh # default
/usr/local/etc/grc.zsh # homebrew darwin-x64
/opt/homebrew/etc/grc.zsh # homebrew darwin-arm64
)
# verify the file is readable and source it
for file in $files; do
if [[ -r "$file" ]]; then
source "$file"
break
fi
done
unset file files