{"id":19850585,"url":"https://github.com/mroth/git-prompt-useremail","last_synced_at":"2025-05-01T23:30:34.493Z","repository":{"id":37852094,"uuid":"88093150","full_name":"mroth/git-prompt-useremail","owner":"mroth","description":":guardsman: zsh plugin adds prompt reminders for git user.email","archived":false,"fork":false,"pushed_at":"2022-06-15T18:11:35.000Z","size":8,"stargazers_count":8,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-21T12:22:59.568Z","etag":null,"topics":["emoji","prompt","zsh","zsh-plugin"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mroth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-12T20:24:26.000Z","updated_at":"2023-06-26T06:18:17.000Z","dependencies_parsed_at":"2022-08-19T23:11:45.464Z","dependency_job_id":null,"html_url":"https://github.com/mroth/git-prompt-useremail","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mroth%2Fgit-prompt-useremail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mroth%2Fgit-prompt-useremail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mroth%2Fgit-prompt-useremail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mroth%2Fgit-prompt-useremail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mroth","download_url":"https://codeload.github.com/mroth/git-prompt-useremail/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224281005,"owners_count":17285573,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["emoji","prompt","zsh","zsh-plugin"],"created_at":"2024-11-12T13:26:59.403Z","updated_at":"2024-11-12T13:27:00.080Z","avatar_url":"https://github.com/mroth.png","language":"Shell","funding_links":[],"categories":["Plugins"],"sub_categories":["ZSH on Windows","Zinit (née zplugin)"],"readme":"# git-prompt-useremail\n\u003e zsh plugin to add prompt reminders for git user.email\n\nDo you git commit under multiple email addresses depending on the situation?\n(For example different addresses for work and open source projects.) Tend to\nforget which one you have active at a given time, leading to having to amend\ncommits to fix it?  This is for you.\n\nI personally use this to have an emoji in my prompt to remind me which email\nwill be recorded when I git commit.\n\n## Usage\n\nThe shell function `git_prompt_useremail` will echo the email address your\nnext commit will be attributed to (checking both the `$GIT_AUTHOR_EMAIL`\nenvironment variable and the local `git-config` cascade for `user.email`.)\n\nMore importantly, the `git_prompt_useremail_symbol` function will echo to you a\nhandy user definable emoji/icon/unicode-glyph for quick recognizeability!\n\nTo define the symbols, add entries to your git configuration (`~/.gitconfig` or\nalso see [git-config] for details of the many options there), with the format:\n\n    [emailprompt \"bwayne73@hotmail.com\"]\n        prompt = 🥂\n    [emailprompt \"bruce@wayne-enterprises.biz\"]\n        prompt = 👔\n    [emailprompt \"batman@justice-league.usa.gov\"]\n        prompt = 🦇\n\nI personally like to put this one in my `$RPROMPT`.\n\n    export RPROMPT='$(git_prompt_useremail_symbol) '\n\n_Note that extra space at the end makes emoji in the RPROMPT look better in the\nmacOS terminal. The single quotation marks are important though, so that the\nexecution happens every time $RPROMPT is evaluated rather than when you first\nset it._\n\n\u003cimg alt=\"screenshot\" \n     src=\"https://cloud.githubusercontent.com/assets/40650/23048542/63ea7ec2-f46b-11e6-8b7c-dc7102911feb.png\"\n     width=\"430\" /\u003e\n\n[git-config]: https://git-scm.com/docs/git-config\n\n\n## Installation\n\n### [Antigen](https://github.com/zsh-users/antigen)\n\nAdd `antigen bundle mroth/git-prompt-useremail` to your `.zshrc` with your other bundle commands.\n\nAntigen will handle cloning the plugin for you automatically the next time you start zsh. You can also add the plugin to a running zsh with `antigen bundle mroth/git-prompt-useremail` for testing before adding it to your `.zshrc`.\n\n### [Oh-My-Zsh](http://ohmyz.sh/)\n\n1. `cd ~/.oh-my-zsh/custom/plugins`\n2. `git clone https://github.com/mroth/git-prompt-useremail`\n3. Add *git-prompt-useremail* to your plugin list - edit `~.zshrc` and change `plugins=(...)` to `plugins=(... git-prompt-useremail)`\n\n### [Zgen](https://github.com/tarjoilija/zgen)\n\nAdd `zgen load mroth/git-prompt-useremail` to your `.zshrc` file in the same function you're doing your other `zgen load` calls in. Zgen will handle automatically cloning the plugin for you the next time you do a `zgen save`.\n\n### Bash\n\nThis script should work fine in bash as well, I just haven't tested it.  PRs with modifications and installation instructions are very welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmroth%2Fgit-prompt-useremail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmroth%2Fgit-prompt-useremail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmroth%2Fgit-prompt-useremail/lists"}