You can do something similar to target *nix platforms like Darwin|FreeBSD|Linux|NetBSD|OpenBSD with:
if [ -f ~/config/bashrc_$(uname -s) ]; then
source ~/config/bashrc_$(uname -s)
fi