Hope it will work for you. I tested it on a bunch of machines, but it is full of shell magic and I can't be sure enough :)
Also if you decide to continue to use it you might want to make some configuration so cod doesn't annoy you to learn system commands like `git` (which probably have good completion by your shell already).
This looks so great!! Installing on my Mac in a bit. Took too long of a break. This should be on Homebrew if possible. Especially since the newest Mac comes with zsh. Old bash issue won’t be there.