Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ucpr/hina
hina is a shell theme for bash and zsh and fish
https://github.com/ucpr/hina
bash git go k8s theme zsh
Last synced: about 2 months ago
JSON representation
hina is a shell theme for bash and zsh and fish
- Host: GitHub
- URL: https://github.com/ucpr/hina
- Owner: ucpr
- License: mit
- Archived: true
- Created: 2019-10-01T16:37:58.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2019-10-21T04:46:49.000Z (over 4 years ago)
- Last Synced: 2024-01-27T12:10:46.702Z (4 months ago)
- Topics: bash, git, go, k8s, theme, zsh
- Language: Go
- Homepage:
- Size: 39.1 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-zsh-plugins - hina - Written in `golang`, includes `git` status decoration and kubernetes context. (Themes / ZSH on Windows)
- fucking-awesome-zsh-plugins - hina - Written in `golang`, includes `git` status decoration and kubernetes context. (Themes / ZSH on Windows)
- awesome-zsh-plugins - hina - Written in `golang`, includes `git` status decoration and kubernetes context. (Themes / Zinit (née zplugin))
- awesome-zsh-plugins - hina - Written in `golang`, includes `git` status decoration and kubernetes context. (Themes / ZSH on Windows)
README
# hina
![hina](./screen.png "hina")
hina is a shell theme for bash and zsh.
## Feature
- git branch
- git status
- kubernetes contextIf you have the features you want, create an issue please.
## Usage
### Install
```
$ go get -u github.com/ucpr/hina
```### for Zsh
please add `.zshrc` or `.zsh_profile`.
rewrite `HINA_PATH` to suit your environment.
```zsh
export HINA_PATH="YOUR_HINA_PATH"autoload -Uz add-zsh-hook
_hina_prompt() {
PROMPT=$($HINA_PATH)
}add-zsh-hook precmd _hina_prompt
```### for Bash
please add `.bashrc` or `.bash_profile`.
rewrite `HINA_PATH` to suit your environment.
```bash
export HINA_PATH="YOUR_HINA_PATH"_hina_prompt() {
PS1="$($HINA_PATH)"
}PROMPT_COMMAND=_hina_prompt
```### for Fish
please add `config.fish`.
rewrite `HINA_PATH` to suit your environment.
```fish
set -x HINA_PATH "YOUR_HINA_PATH"function _hina_prompt
for i in ($HINA_PATH)
echo $i
end
endfunction fish_prompt
_hina_prompt
end
```## Enviroment Variables
mark to represent git status
| name | mark (default) |
|----------------------|----------------|
| `HINA_GIT_MODIFIED` | `*` |
| `HINA_GIT_ADDED` | `+` |
| `HINA_GIT_DELETED` | `-` |
| `HINA_GIT_COPIED` | `$` |
| `HINA_GIT_RENAMED` | `~` |
| `HINA_GIT_UNMERGED` | `=` |
| `HINA_GIT_UNTRACKED` | `!` |if you want to display k8s context, run `export HINA_K8S=on`
| name | default |
|------------|-----------|
| `HINA_K8S` | `off` |## Contributions
Welcome!!## Author
taichi uchihara (@u\_chi\_ha\_ra\_)## LICENCE
MIT LICENCE