Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/raymondjcox/hub-ci-zsh-plugin
A plugin for displaying ci status on your zsh theme
https://github.com/raymondjcox/hub-ci-zsh-plugin
Last synced: about 1 month ago
JSON representation
A plugin for displaying ci status on your zsh theme
- Host: GitHub
- URL: https://github.com/raymondjcox/hub-ci-zsh-plugin
- Owner: raymondjcox
- Created: 2015-09-18T02:41:56.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2015-09-18T03:16:12.000Z (over 8 years ago)
- Last Synced: 2024-03-16T02:50:42.921Z (2 months ago)
- Language: Shell
- Homepage:
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Lists
- awesome-zsh-plugins - hub-ci-zsh-plugin - A simple plugin for adding `hub` ci-status to your ZSH theme. (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - hub-ci-zsh-plugin - A simple plugin for adding `hub` ci-status to your ZSH theme. (Plugins / ZSH on Windows)
- awesome-zsh-plugins - hub-ci-zsh-plugin - A simple plugin for adding `hub` ci-status to your ZSH theme. (Plugins / Zinit (née zplugin))
- awesome-zsh-plugins - hub-ci-zsh-plugin - A simple plugin for adding `hub` ci-status to your ZSH theme. (Plugins / ZSH on Windows)
README
# hub-ci-zsh-plugin
A simple plugin for adding `hub ci-status` to your zsh theme.# Setup
1. git clone into your `.oh-my-zsh/plugins/hub-ci-status` folder
2. add `hub-ci-status` to your `~/.zshrc` plugins
3. in your `.oh-my-zsh/themes/` you can have something like this (notice `hub_ci_status` and hub specific vars)
```
PROMPT='$(battery_pct_prompt)%{$fg[blue]%}%~%{$reset_color%}%{$fg[blue]%}$(git_prompt_info) '
RPROMPT='$(hub_ci_status)%{$reset_color%}'ZSH_THEME_GIT_PROMPT_PREFIX="("
ZSH_THEME_GIT_PROMPT_SUFFIX=")"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}✗%{$fg[blue]%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}✔%{$fg[blue]%}"
ZSH_THEME_HUB_CI_PROMPT_SUCCESS="%{$fg[green]%}Success ●%{$fg[blue]%}"
ZSH_THEME_HUB_CI_PROMPT_PENDING="%{$fg[yellow]%}Pending ●%{$fg[blue]%}"
ZSH_THEME_HUB_CI_PROMPT_FAIL="%{$fg[red]%}Fail ●%{$fg[blue]%}"
ZSH_THEME_HUB_CI_PROMPT_NO_STATUS=""```