{"id":15605229,"url":"https://github.com/ostinelli/contextual-git-prompt","last_synced_at":"2025-04-04T09:41:30.934Z","repository":{"id":20098090,"uuid":"23367576","full_name":"ostinelli/contextual-git-prompt","owner":"ostinelli","description":"Display git information in OSX terminal's prompt.","archived":false,"fork":false,"pushed_at":"2019-07-16T12:26:01.000Z","size":34,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T20:18:02.290Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ostinelli.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-26T21:35:31.000Z","updated_at":"2019-12-09T17:04:27.000Z","dependencies_parsed_at":"2022-07-17T20:40:46.916Z","dependency_job_id":null,"html_url":"https://github.com/ostinelli/contextual-git-prompt","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/ostinelli%2Fcontextual-git-prompt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ostinelli%2Fcontextual-git-prompt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ostinelli%2Fcontextual-git-prompt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ostinelli%2Fcontextual-git-prompt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ostinelli","download_url":"https://codeload.github.com/ostinelli/contextual-git-prompt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247157076,"owners_count":20893202,"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":[],"created_at":"2024-10-03T04:03:24.643Z","updated_at":"2025-04-04T09:41:30.915Z","avatar_url":"https://github.com/ostinelli.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Contextual Git Prompt\n\n## Overview\n\nDisplay git information in OSX terminal's prompt.\n\n![Git Prompt Preview](https://raw.github.com/ostinelli/contextual-git-prompt/master/preview.png)\n\n## Installation\n\nThe only needed file is `contextual-git-prompt.sh`, that needs to be sourced from your `~/.profile` or `~/.bash_profile`.\n\nI generally have all my bash scripts into the `.bash` directory in my home directory, so I do:\n\n```bash\n$ mkdir ~/.bash\n$ cd ~/.bash\n```\n\nThen I copy the `contextual-git-prompt.sh` file in there. Finally, I ensure that all of the `*.sh` files in `.bash` are sourced from my `~/.bash_profile`:\n\n```bash\nfor file in ~/.bash/*.sh; do\n\t[[ -r $file ]] \u0026\u0026 source $file;\ndone\n```\n\nRestart terminal to see the changes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fostinelli%2Fcontextual-git-prompt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fostinelli%2Fcontextual-git-prompt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fostinelli%2Fcontextual-git-prompt/lists"}