Compare commits

...

3 Commits

Author SHA1 Message Date
Peter J. Holzer 102889bd7b Don't set GIT_AUTHOR_NAME on shared accounts 2019-09-28 10:28:44 +02:00
Peter J. Holzer b3405ddfb7 Merge branch 'master' into wsr_shared 2019-09-28 10:27:26 +02:00
Peter J. Holzer 4e4abd2088 Set GIT_AUTHOR_* (only) if not set 2019-09-28 10:25:13 +02:00
1 changed files with 14 additions and 1 deletions

15
.zshenv
View File

@ -300,7 +300,20 @@ esac
case "$FQDN" in
*.wsr.ac.at)
export GIT_AUTHOR_EMAIL="$LOGNAME@wsr.ac.at"
if [ -z "$GIT_AUTHOR_EMAIL" ]
then
export GIT_AUTHOR_EMAIL="$LOGNAME@wsr.ac.at"
fi
;;
*.hjp.at)
if [ -z "$GIT_AUTHOR_EMAIL" ]
then
export GIT_AUTHOR_EMAIL="$LOGNAME@hjp.at"
fi
if [ -z "$GIT_AUTHOR_NAME" ]
then
export GIT_AUTHOR_NAME="Peter J. Holzer"
fi
;;
esac