hina

command module
v0.0.0-...-7e15aae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2019 License: MIT Imports: 2 Imported by: 0

README

hina

hina

hina is a shell theme for bash and zsh.

Feature

  • git branch
  • git status
  • kubernetes context

If 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.

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.

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.

set -x HINA_PATH "YOUR_HINA_PATH"

function _hina_prompt
  for i in ($HINA_PATH)
    echo $i
  end
end

function 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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL