5 function __init_git() {
7 if [ -z "$(command -v git)" ]; then
8 if [[ -n "$(uname -a | grep -i darwin)" ]]; then
9 echo >&2 "Error: 'git' not found. You may have to re-install 'git' on Mac after every major update."
10 echo >&2 " for example, try: xcode-select --install"
11 # sudo xcodebuild -license accept
13 echo >&2 "Error: to install 'git' on Linux use the built-in package manager."
14 echo >&2 " for example, try: sudo apt install -y git"
18 echo "'git' already installed"