{"id":22502559,"url":"https://github.com/rberenguel/rb-zsh-theme","last_synced_at":"2026-01-24T00:11:38.009Z","repository":{"id":148885366,"uuid":"130746119","full_name":"rberenguel/rb-zsh-theme","owner":"rberenguel","description":"Powerline-styled ZSH theme based on agnoster","archived":false,"fork":false,"pushed_at":"2018-10-25T11:45:14.000Z","size":119,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-02T01:11:19.470Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"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/rberenguel.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}},"created_at":"2018-04-23T19:27:44.000Z","updated_at":"2022-10-14T11:52:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"ec30faf9-05ae-491e-aa45-224a6e99e618","html_url":"https://github.com/rberenguel/rb-zsh-theme","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/rberenguel%2Frb-zsh-theme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rberenguel%2Frb-zsh-theme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rberenguel%2Frb-zsh-theme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rberenguel%2Frb-zsh-theme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rberenguel","download_url":"https://codeload.github.com/rberenguel/rb-zsh-theme/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245937974,"owners_count":20696989,"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-12-06T23:19:25.004Z","updated_at":"2026-01-24T00:11:37.979Z","avatar_url":"https://github.com/rberenguel.png","language":null,"funding_links":[],"categories":["Themes"],"sub_categories":["ZSH on Windows","Zinit (née zplugin)"],"readme":"# rb.zsh-theme\n\nA ZSH theme based on [agnoster](https://github.com/agnoster/agnoster-zsh-theme), optimised for people who:\n\n- Like Solarized\n- Use Git\n- Love fancy powerline-like themes\n\nThis has been tweaked under Mac with Solarized dark and a good Unicode font (Fira Code Light)\n\n# Compatibility\n\n_This comes straight from [agnoster](https://github.com/agnoster/agnoster-zsh-theme), since my theme uses the same formatting code_\n\nIn all likelihood, you will need to install a [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts) for this theme to render correctly.\n\nTo test if your terminal and font support it, check that all the necessary characters are supported by copying the following command to your terminal: `echo \"\\ue0b0 \\u00b1 \\ue0a0 \\u27a6 \\u2718 \\u26a1 \\u2699\"`. The result should look like this:\n\n![Character Example](https://gist.githubusercontent.com/agnoster/3712874/raw/characters.png)\n\n## What does it show?\n\n- Current git project, if any\n- Working directory, without path\n- Git status\n  - Branch () or detached head (➦)\n  - Current (shortened) branch with some tweaks / SHA1 in detached head state\n  - Dirty working directory (±, color change)\n- Error status (color change)\n\n![Screenshot](https://raw.githubusercontent.com/rberenguel/rb-zsh-theme/master/screenshot.jpg)\n\n\n## Shortened branches\n\nI use a small, inlined `awk` script to shorten `git` branches depending on some rules:\n\n- Check which is the likely word/concept separator (chooses between slash or dash)\n- Split by separator and shorten each word to 4 letters unless it matches our\n  JIRA ticket format (in this case keep full, see screenshot)\n\n## Helpers\n\nA helper function (which I alias to `oj`) opens the corresponding JIRA issue.\nSimilarly, `og` opens the github page for the project. This last one could be in\nmy general zsh configuration, but I decided to bind it to the theme code (since\nit is when it occurred to me)\n\n## Possible changes\n\nI may tweak it to apply the non-shortening of ticket numbers to follow also the\nSpark ticket system, and add the corresponding issue tracker helper.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frberenguel%2Frb-zsh-theme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frberenguel%2Frb-zsh-theme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frberenguel%2Frb-zsh-theme/lists"}