I have a shell script to bootstrap my machine: https://github.com/pathikrit/mac-setup-script/blob/master/setup.sh
I have these few lines of code to setup git:
git config --global rerere.enabled true
git config --global branch.autosetuprebase always
git config --global credential.helper osxkeychain
I would like to extract that out to an associative array (a dictionary/hashmap) at the top and call that in a single line of code. How can I do that in bash 4+?