mine() { # fetch user from args local gitUser=$GIT_USER # Get the user defined in the local config if [ -z "$gitUser" ]; then gitUser=$(git config --get user.name) echo "Fetching user from git config: $gitUser" fi echo "Git user: $gitUser" # get my commits git log --author="$gitUser" }