{"id":15994201,"url":"https://github.com/knutwalker/kbashprompt","last_synced_at":"2025-10-21T03:30:40.823Z","repository":{"id":36977352,"uuid":"268073929","full_name":"knutwalker/kbashprompt","owner":"knutwalker","description":null,"archived":true,"fork":false,"pushed_at":"2023-03-10T04:58:25.000Z","size":84,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-28T23:38:53.828Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/knutwalker.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":"2020-05-30T12:20:50.000Z","updated_at":"2024-02-10T13:34:52.000Z","dependencies_parsed_at":"2023-02-12T20:15:31.647Z","dependency_job_id":null,"html_url":"https://github.com/knutwalker/kbashprompt","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/knutwalker%2Fkbashprompt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knutwalker%2Fkbashprompt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knutwalker%2Fkbashprompt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knutwalker%2Fkbashprompt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knutwalker","download_url":"https://codeload.github.com/knutwalker/kbashprompt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237429421,"owners_count":19308791,"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-08T07:07:05.872Z","updated_at":"2025-10-21T03:30:40.485Z","avatar_url":"https://github.com/knutwalker.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# K's bash prompt\n\nGenerate PS1 and PS2 prompts for my bash.\n\n```\n$ kbashprompt\n// outputs $PS1\n\n$ kbashprompt 2\n// outputs $PS2\n```\n\n## Build\n\n```\nmake\nmake install\n```\n\nThis will put the binary into `/usr/local/bin/`, which can be changed with,\ne.g. `PREFIX=/opt make install` to put it in `/opt/bin`.\n\n\n## Include in .bash_profile\n\n```\n# Make sure to keep the single quotes, so that the promp is re-evaluated on every prompt\n# Otherwise it would only change if you open a new bash session \nexport PS1='$(kbashprompt)';\n\n# PS2 is not dynamic, can be calculated once and reused\nexport PS2=$(kbashprompt 2);\n```\n\n## Dependencies\n\n- Requires a terminal with 256 color support (sends `^[[38;5;{ccc}m` ANSI color codes)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknutwalker%2Fkbashprompt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknutwalker%2Fkbashprompt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknutwalker%2Fkbashprompt/lists"}