make git submodules usable
September 16, 2015 · View on GitHub
This overwrites the 'git' command with modifications where necessary, and
calls the original otherwise
git() { if [[ (echo "gitargs elif [[ @" && git submodule update --init --recursive elif [[ @" && git submodule update --init --recursive else command git "$@" fi }