Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rberenguel/rb-zsh-theme
Powerline-styled ZSH theme based on agnoster
https://github.com/rberenguel/rb-zsh-theme
Last synced: about 2 months ago
JSON representation
Powerline-styled ZSH theme based on agnoster
- Host: GitHub
- URL: https://github.com/rberenguel/rb-zsh-theme
- Owner: rberenguel
- Created: 2018-04-23T19:27:44.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-25T11:45:14.000Z (over 5 years ago)
- Last Synced: 2024-01-27T12:11:43.395Z (4 months ago)
- Homepage:
- Size: 116 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Lists
- awesome-zsh-plugins - rb - Powerline-styled ZSH theme based on [Agnoster](https://gist.github.com/agnoster/3712874), optimized for `git` and solarized terminals. Requires a Powerline-compatible font. (Themes / ZSH on Windows)
- fucking-awesome-zsh-plugins - rb - Powerline-styled ZSH theme based on đ [Agnoster](gist.github.com/agnoster/3712874), optimized for `git` and solarized terminals. Requires a Powerline-compatible font. (Themes / ZSH on Windows)
- awesome-zsh-plugins - rb - Powerline-styled ZSH theme based on [Agnoster](https://gist.github.com/agnoster/3712874), optimized for `git` and solarized terminals. Requires a Powerline-compatible font. (Themes / Zinit (nÊe zplugin))
- awesome-zsh-plugins - rb - Powerline-styled ZSH theme based on [Agnoster](https://gist.github.com/agnoster/3712874), optimized for `git` and solarized terminals. Requires a Powerline-compatible font. (Themes / ZSH on Windows)
README
# rb.zsh-theme
A ZSH theme based on [agnoster](https://github.com/agnoster/agnoster-zsh-theme), optimised for people who:
- Like Solarized
- Use Git
- Love fancy powerline-like themesThis has been tweaked under Mac with Solarized dark and a good Unicode font (Fira Code Light)
# Compatibility
_This comes straight from [agnoster](https://github.com/agnoster/agnoster-zsh-theme), since my theme uses the same formatting code_
In all likelihood, you will need to install a [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts) for this theme to render correctly.
To 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:
![Character Example](https://gist.githubusercontent.com/agnoster/3712874/raw/characters.png)
## What does it show?
- Current git project, if any
- Working directory, without path
- Git status
- Branch (î ) or detached head (âĻ)
- Current (shortened) branch with some tweaks / SHA1 in detached head state
- Dirty working directory (Âą, color change)
- Error status (color change)![Screenshot](https://raw.githubusercontent.com/rberenguel/rb-zsh-theme/master/screenshot.jpg)
## Shortened branches
I use a small, inlined `awk` script to shorten `git` branches depending on some rules:
- Check which is the likely word/concept separator (chooses between slash or dash)
- Split by separator and shorten each word to 4 letters unless it matches our
JIRA ticket format (in this case keep full, see screenshot)## Helpers
A helper function (which I alias to `oj`) opens the corresponding JIRA issue.
Similarly, `og` opens the github page for the project. This last one could be in
my general zsh configuration, but I decided to bind it to the theme code (since
it is when it occurred to me)## Possible changes
I may tweak it to apply the non-shortening of ticket numbers to follow also the
Spark ticket system, and add the corresponding issue tracker helper.