Home

Awesome

Senpai - 先輩

Senpai is a ZSH clean prompt theme for Devops.

<img src="senpai_cmd_dark_screenshot.png" width="864"> <img src="senpai_cmd_white_screenshot.png" width="864">

But why?

Installation

Requires Git 2.0.0+ and ZSH 5.2+

Install without any framework

If you just use a zsh without any framework, simply clone this repository and reference it in your ~/.zshrc:

$ git clone https://github.com/hiroru/senpai-zsh.git ~/.senpai-zsh
$ echo 'source  ~/.senpai-zsh/senpai.zsh-theme' >> ~/.zshrc

Install for Oh-My-ZSH

To install this theme for use in Oh-My-Zsh, clone this repository into your OMZ custom/themes directory.

$ git clone https://github.com/hiroru/senpai-zsh.git ~/.oh-my-zsh/custom/themes/senpai-zsh

You then need to select this theme in your ~/.zshrc:

ZSH_THEME="hiroru/senpai-zsh"

Install for ZIM

To install this theme for use in ZIM, clone this repository into your ZIM prompt/external-themes directory.

$ git clone https://github.com/hiroru/senpai-zsh.git ~/.zim/modules/prompt/external-themes/senpai-zsh
$ ln -s ~/.zim/modules/prompt/external-themes/senpai-zsh/senpai.zsh-theme ~/.zim/modules/prompt/functions/prompt_senpai_setup

Add this at the beginning of your ~/.zshrc:

SENPAI_INSTALLATION_PATH=~/.zim/modules/prompt/external-themes/senpai-zsh/senpai.zsh-theme

You then need to select this theme in your ~/.zimrc:

zprompt_theme='senpai'

Options

You can add these values which are self-explanatory into your ~/.zshrc file. By default all options are enabled.

SENPAI_SHOW_TIME

SENPAI_SHOW_USER

SENPAI_SHOW_PATH

SENPAI_SHOW_GIT

SENPAI_SHOW_VIRT

SENPAI_SHOW_K8S

SENPAI_SHOW_AWS

SENPAI_SHOW_GCP

SENPAI_SHOW_AZURE

Example

# .zshrc

autoload -U promptinit; promptinit

# optionally define some options
SENPAI_SHOW_K8S=false
SENPAI_SHOW_AZURE=false

prompt senpai

asciicast

ToDo

Changelog

v0.6

v0.5

v0.4

v0.3

v0.2

v0.1

License

MIT © Sergi Barroso