{"id":15403923,"url":"https://github.com/twe4ked/aurora","last_synced_at":"2026-04-13T00:40:17.145Z","repository":{"id":66271058,"uuid":"233323273","full_name":"twe4ked/aurora","owner":"twe4ked","description":"A shell prompt for Bash and Zsh.","archived":false,"fork":false,"pushed_at":"2021-02-15T03:32:41.000Z","size":275,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-10T03:53:32.689Z","etag":null,"topics":["bash","bash-prompt","prompt","shell","zsh","zsh-prompt"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/twe4ked.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-12T01:44:09.000Z","updated_at":"2021-12-10T08:56:39.000Z","dependencies_parsed_at":"2023-06-14T06:00:30.852Z","dependency_job_id":null,"html_url":"https://github.com/twe4ked/aurora","commit_stats":{"total_commits":224,"total_committers":1,"mean_commits":224.0,"dds":0.0,"last_synced_commit":"aa633e4f25086feb443c449cd3de6f205a6e1ce7"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/twe4ked/aurora","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twe4ked%2Faurora","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twe4ked%2Faurora/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twe4ked%2Faurora/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twe4ked%2Faurora/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twe4ked","download_url":"https://codeload.github.com/twe4ked/aurora/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twe4ked%2Faurora/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31735541,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T22:19:12.206Z","status":"ssl_error","status_checked_at":"2026-04-12T22:18:33.088Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","bash-prompt","prompt","shell","zsh","zsh-prompt"],"created_at":"2024-10-01T16:10:40.498Z","updated_at":"2026-04-13T00:40:17.125Z","avatar_url":"https://github.com/twe4ked.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aurora Prompt\n\nA shell prompt for Bash and Zsh.\n\n## Examples\n\nThe default prompt:\n\n```\n# Put this line in your shell config\neval \"$(aurora_prompt init zsh)\"\n\n# ... or for Bash\neval \"$(aurora_prompt init bash)\"\n\n# The following prompt will be set up:\n~/Dev/github/twe4ked/prompt master $\n```\n\nA custom prompt displaying the current working directory and a `$` symbol:\n\n```\n# For Bash\neval \"$(aurora_prompt init bash \"{cwd=short} $ \")\"\n\n# The following prompt will be set up:\n~/D/g/t/prompt $\n```\n\nA more complex example:\n\n```\n# For Zsh\neval \"$(aurora_prompt init zsh \"\\\n{green}{cwd style=short underline_repo=true}\\\n{yellow} ± {git_branch}{git_status}:{git_commit}\\\n{dark_grey} {git_stash}\\\n{dark_grey} {jobs}\\\n{if last_command_status}{cyan} $ \\\n{else}{red} $ \\\n{end}{reset}\")\"\n\n# Produces\n~/D/g/t/prompt ± master:bacd2a3 1+ $\n```\n\n## Components\n\n- `{cwd}`, `{cwd style=short underline_repo=true}`, `{cwd style=long}`, `{cwd style=default}`\n- `{env name=HOME}`\n\n    A Zsh example of using a precommand to populate an environment variable with\n    a custom string. This can be used to put anything in your prompt.\n\n    ```zsh\n    my_date_precmd() {\n        export MY_DATE=\"$(date)\"\n    }\n\n    autoload -U add-zsh-hook\n    add-zsh-hook precmd my_date_precmd\n\n    eval \"$(aurora_prompt init zsh \"{env name=MY_DATE}\")\"\n    ```\n\n- `{git_branch}`\n- `{git_commit}`\n- `{git_stash}`\n- `{git_status}`\n- `{hostname}`\n- `{jobs}`\n- `{user}`\n\n## Colors\n\nColors are also used to define groups, if all components within a color group\nreturn nothing, the entire group will be squashed. Groups are defined as\neverything between a color and a `{reset}`.\n\n- `{black}`, `{white}`\n- `{grey}`, `{dark_grey}`\n- `{blue}`, `{dark_blue}`\n- `{green}`, `{dark_green}`\n- `{red}`, `{dark_red}`\n- `{cyan}`, `{dark_cyan}`\n- `{magenta}`, `{dark_magenta}`\n- `{yellow}`, `{dark_yellow}`\n\n### Reset\n\n- `{reset}`\n\n## Conditionals\n\nConditionals can be used to show and hide components and colors.\n\n```\n# Last command status returns \"true\" if the last command returned 0\n{if last_command_status}{cyan}${else}{red}${end}{reset}\n\n# Environment variables\n{user}{if $SSH_CONNECTION}@{hostname}{end}\n```\n\n## Design Goals\n\n- Speed\n- Minimal\n- Simple configuration\n- Default fonts\n\n## Adding a new component\n\nBegin by adding a new variant to the `Component` enum in `token` and update the\n`TryFrom\u003c\u0026str\u003e for Component` impl. From there follow the compiler errors!\n\n## Inspiration\n\n- [starship/starship](https://github.com/starship/starship)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwe4ked%2Faurora","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwe4ked%2Faurora","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwe4ked%2Faurora/lists"}