Back up of my dot files for Linux/ Mac.
Create a Brewfile From Your Existing Environment
# create Brewfile
brew bundle dump
To restore your environment from another machine, copy the Brewfile created from the previous command to your new machine (or clone from publicly accessible repository) and run the following command:
# install packages from Brewfile in current directory
brew bundle install
Copy executables from usr/bin/ folder to /usr/local/bin
Some helpful links
https://zihao.me/post/managing-dotfiles-with-gnu-stow/
https://engineeringfordatascience.com/posts/automate_mac_setup_with_brewfile/
https://medium.com/@protiumx/bash-gnu-stow-take-a-walk-while-your-new-macbook-is-being-set-up-351a6f2f9225