JanDeDobbeleer / oh-my-posh

The most customisable and low-latency cross platform/shell prompt renderer
https://ohmyposh.dev
MIT License
16.79k stars 2.35k forks source link

Displaying Git User Name/Email in Posh Theme #3331

Closed NazCodeland closed 1 year ago

NazCodeland commented 1 year ago

Code of Conduct

What would you like to see changed/added?

I have two GitHub accounts and I would like to know which GitHub account repository I'm currently working on by having the User Name and, or, Email displayed in my Oh-My-Posh themes.

Implementation Suggestion:

I know it's possible to retrieve the user name and email from Git via `

git config user.name
git config user.email

But, because I have two accounts, I've opted to not include the user.name or user.email in the .gitconfig file. When I push to a GitHub repo, I'm prompted

Username for 'https://github.com':
Password for 'https://{GitHubAccountName}@github.com': // GitHubAccountName = username from the input before

Therefore, for my situation, if the implementation could be done in a way where the User Name/Email is retrieved from Git Commit data depending on the Git Repo you're in, that would be amazing!

Thank you in advance.

github-actions[bot] commented 9 months ago

This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.