Awesome
hanpen.zsh-theme
:art: Hanpen Oh My Zsh theme
Dependencies
- Oh My Zsh
(specifically lib/git.zsh and lib/theme-and-appearance.zsh in Oh My Zsh)
Optional dependencies
Installation
Zgen
# Load Oh My Zsh
zgen oh-my-zsh
# Or load dependent libs explicitly
zgen load robbyrussell/oh-my-zsh lib/git.zsh
zgen load robbyrussell/oh-my-zsh lib/theme-and-appearance.zsh
# Load zsh-async (optional)
zgen load mafredri/zsh-async async.zsh
# Then load this theme
zgen load uu1t/hanpen.zsh-theme hanpen.zsh-theme
Features
- Show git branch and status.
- asynchronously if zsh-async is installed.
- Show exit status except for 0 (success).
- Show command execution time longer than
ZSH_THEME_HANPEN_CMD_MAX_EXEC_TIME
(default:5
) seconds. - Colorize less(1) in man pages and with GNU Source-highlight.
Recommended usage
- Use powerline-patched fonts.
- Locate a theme for GNU dircolors on
~/.dircolors
or assign the path toZSH_THEME_HANPEN_DIRCOLORS_THEME_PATH
variable. - Install GNU Source-highlight
src-hilite-lesspipe.sh
into a directory in$PATH
. - Install sindresorhus/pretty-time-zsh.
Others
In the screenshot, followings are used:
- zsh-syntax-highlighting
- Tomorrow Night in iTerm2-Color-Schemes
dircolors.256dark
in dircolors-solarized- Source Code Pro
License
MIT