{"id":17962169,"url":"https://github.com/skyzyx/git-prompt","last_synced_at":"2026-04-10T23:44:28.653Z","repository":{"id":19391145,"uuid":"22632339","full_name":"skyzyx/git-prompt","owner":"skyzyx","description":"Fancy prompt that provides Git info","archived":false,"fork":false,"pushed_at":"2016-02-25T22:31:08.000Z","size":114,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-28T12:55:38.300Z","etag":null,"topics":["bash","git","prompt","shell"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skyzyx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-05T06:04:09.000Z","updated_at":"2016-02-25T21:45:48.000Z","dependencies_parsed_at":"2022-07-27T00:32:03.269Z","dependency_job_id":null,"html_url":"https://github.com/skyzyx/git-prompt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/skyzyx/git-prompt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyzyx%2Fgit-prompt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyzyx%2Fgit-prompt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyzyx%2Fgit-prompt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyzyx%2Fgit-prompt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skyzyx","download_url":"https://codeload.github.com/skyzyx/git-prompt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyzyx%2Fgit-prompt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262545030,"owners_count":23326658,"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":["bash","git","prompt","shell"],"created_at":"2024-10-29T11:14:23.369Z","updated_at":"2026-04-10T23:44:23.593Z","avatar_url":"https://github.com/skyzyx.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-prompt\n\nThis is my prompt, which provides all sorts of useful information about the current status of Git repositories. It is written in pure Bash.\n\nA plain-text version looks like this:\n\n```bash\n[ryanparman@rparman: ~/projects/my-project] 12:00:00 (master +1 -2 3× 4∆ 5* 6! \u003clocal\u003e) ✓\n     ↑        ↑                ↑               ↑        ↑             ↑                 ↑\n   User     Machine           Path            Time    Branch [Git state information]  Last exit status\n```\n\n* `master` — The current branch that the repo is set to.\n* `+1` — The number of commits \"ahead\" this branch is compared to its remote copy. (Local has new commits)\n* `-2` — The number of commits \"behind\" this branch is compared to its remote copy. (Remote has new commits)\n* `3×` — The number of files that have merge conflicts.\n* `4∆` — The number of changed files that have been staged (a.k.a., \"added\") for commit.\n* `5*` — The number of changed files that have NOT been staged (a.k.a., \"added\") for commit.\n* `6!` — The number of new files that have not yet been added to the repository.\n* `\u003clocal\u003e` — This is only shown if the branch has not yet been pushed to the remote. It is a local-only branch.\n\n**Last exit status:**\n* `✓` — The last command exited with NO errors.\n* `‼︎` — The last command exited with errors.\n\n## Dependencies\n\n* GNU sed (aka `gsed`, as opposed to the other `sed`) is **required**.\n  ```bash\n  # Homebrew\n  brew install gnu-sed\n  \n  # MacPorts\n  port install gsed\n  ```\n* Bash 4.x is highly recommended. (OS X Mavericks only comes with Bash 3.x.)\n  ```bash\n  # Homebrew\n  brew install bash\n  \n  # MacPorts\n  port install bash\n  ```\n\nIn OS X, you can tell Terminal to use the new version of Bash by changing your preferences.\n```\nPreferences → General → Shells Open With\n```\n\n## Enabling it\n\nSimply dropping these into your `profile.d` directory or sourcing them via `~/.profile`, `~/.bash_profile`, `~/.bashrc` or `/etc/bashrc` isn't enough. You must actually _turn it on_.\n\n```bash\nexport GIT_EXTENDED_PROMPT=true\n```\n\n## Customization\n### Symbology\nIf you want to change the symbology, you can do so by tweaking the environment variables.\n\n```bash\nexport GIT_EXTENDED_PROMPT_HASH=\":\"\nexport GIT_EXTENDED_PROMPT_CONFLICTED=\"\\xC3\\x97\"\nexport GIT_EXTENDED_PROMPT_STAGED=\"\\xE2\\x88\\x86\"\nexport GIT_EXTENDED_PROMPT_CHANGED=\"*\"\nexport GIT_EXTENDED_PROMPT_UNTRACKED=\"!\"\nexport GIT_EXTENDED_PROMPT_AHEAD=\"+\"\nexport GIT_EXTENDED_PROMPT_BEHIND=\"-\"\nexport GIT_EXTENDED_PROMPT_OK=\"\\xE2\\x9c\\x93\"\nexport GIT_EXTENDED_PROMPT_NOK=\"\\xE2\\x80\\xBC\"\nexport GIT_EXTENDED_PROMPT_NOREMOTE=\"\u003clocal\u003e\"\n```\n\n### Color Scheme\nBy default, the prompt is not rewritten. You can change that by setting `dark` for dark-colored consoles, `light` for light-colored consoles, and `nocolor` for a formatted prompt with no color settings.\n\n```bash\nexport GIT_EXTENDED_PROMPT_COLOR=\"dark\"\n```\n\n### System Time\nYou can add the system’s time to the prompt by enabling it.\n\n```bash\nexport GIT_EXTENDED_PROMPT_TIME=\"true\"\n```\n\n## Known Issues\n\nSee the _Issues_ tab in GitHub.\n\n## Other stuff\n\nIf you're running OS X, check out my [Type-R Terminal style](https://github.com/skyzyx/terminal-style).\n\nAlso, I'm a big fan of using [Meslo LG S](https://github.com/andreberg/Meslo-Font) 14pt for my Terminal. Give it a whirl!\n\nYou can set them in the Terminal.app `Preferences pane → Startup`.\n\n## Great artists steal\n\nPortions of this code are from https://github.com/magicmonty/bash-git-prompt.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyzyx%2Fgit-prompt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskyzyx%2Fgit-prompt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyzyx%2Fgit-prompt/lists"}