You don’t need to do anything, especially compdef g='git', it should work without any configuration. You would need something only if you used function in place of an alias.
You don’t need to do anything, especially compdef g='git', it should work without any configuration. You would need something only if you used function in place of an alias.