{"id":19763871,"url":"https://github.com/hypemc/bash-prompt","last_synced_at":"2026-06-12T00:31:18.640Z","repository":{"id":132813175,"uuid":"590151819","full_name":"HypeMC/bash-prompt","owner":"HypeMC","description":"A simple bash prompt","archived":false,"fork":false,"pushed_at":"2024-02-03T22:20:00.000Z","size":60,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-23T00:06:31.630Z","etag":null,"topics":["bash-prompt","git-prompt","shell-prompt"],"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/HypeMC.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-01-17T19:11:09.000Z","updated_at":"2023-01-17T19:59:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"a0b39a61-0c48-45aa-bed1-6db41cda5345","html_url":"https://github.com/HypeMC/bash-prompt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HypeMC/bash-prompt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HypeMC%2Fbash-prompt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HypeMC%2Fbash-prompt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HypeMC%2Fbash-prompt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HypeMC%2Fbash-prompt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HypeMC","download_url":"https://codeload.github.com/HypeMC/bash-prompt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HypeMC%2Fbash-prompt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34224103,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-prompt","git-prompt","shell-prompt"],"created_at":"2024-11-12T04:11:24.500Z","updated_at":"2026-06-12T00:31:17.942Z","avatar_url":"https://github.com/HypeMC.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple bash prompt\n\nClone the repo to your home folder:\n\n```shell\ncd ~\ngit clone https://github.com/HypeMC/bash-prompt.git .bash_prompt\n```\n\nAdd the following to your `.bashrc`:\n\n```shell\n. ~/.bash_prompt/prompt.sh\n\nPROMPT_COMMAND=\"__prompt $color_prompt\"\n```\n\n![Without the hostname](screen1.png)\n\nWith the hostname displayed:\n\n```shell\n. ~/.bash_prompt/prompt.sh\n\nPROMPT_COMMAND=\"__prompt $color_prompt yes\"\n```\n\n![With the hostname](screen2.png)\n\nWhen the user is root:\n\n![When root](screen3.png)\n\nWhen the last exit status iz not zero:\n\n![Non-zero exit status](screen4.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypemc%2Fbash-prompt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhypemc%2Fbash-prompt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypemc%2Fbash-prompt/lists"}