I would like to source some dotfiles. I've found interesting solutions using brace expand. I know this is maybe bash anti pattern, but wondering if it's somehow possible to brace expand from variable. Like this:
dotfiles={path,env,alias}
for dotfile in "$HOME/.dotfiles"/.$dotfiles;
do
echo $dotfile
done
The above example of course doesn't print path env alias. Consider this as hypothetical question about possibilities of brace expansion, not a solution to some problem.