ZSH: auto git config.user

On my laptop and desktop I usually have many git repositories. Some of them are personal and some of them are from my main job. In companies it’s common practice to have corporate email that used in repository configuration. git config user.name "Mr Anderson" git config user.email "anderson@corp.in" In personal repository you may use some cool nickname and personal email. git config user.name "Neo" git config user.email "0xff@matr.ix" But there is an headache to not forget configure every repository to be corporate or personal after cloning....

June 25, 2020