dotfiles/dot_oh-my-zsh/plugins/grc/grc.plugin.zsh

18 lines
279 B
Bash
Raw Normal View History

2023-01-30 14:28:59 +01:00
#!/usr/bin/env zsh
# common grc.zsh paths
files=(
/etc/grc.zsh # default
/usr/local/etc/grc.zsh # homebrew
)
# 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