I moved to tmux + Alacritty [1] (Rust hype and speeed) which is cross-platform and only needs its config file, a nice and clean yaml, in the right place to restore it as I want. Now when I full wipe my Mac I just need to run the script that pulls the config file from GitHub and tada! Also, the configuration file is almost identical to my Linux one so I can move around similarly and have a consistent look.
I'm also used to replace macOS programs like `sed`,`grep`,`getopt`,`ssh` (macOS OpenBSD one won't work with Yubikey),`coreutils` and `awk` with the GNU version. You can download them with Homebrew and to replace them with the macOS default ones you just need to put them at the beginning of your path like this:
export PATH=/usr/local/opt/coreutils/libexec/gnubin:$PATH
[1]: https://github.com/alacritty/alacritty