Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/uu1t/hanpen.zsh-theme

:art: Hanpen Oh My Zsh theme
https://github.com/uu1t/hanpen.zsh-theme

oh-my-zsh-theme zsh-theme

Last synced: about 2 months ago
JSON representation

:art: Hanpen Oh My Zsh theme

Lists

README

        

# hanpen.zsh-theme

[![Build Status](https://travis-ci.org/uu1t/hanpen.zsh-theme.svg?branch=master)](https://travis-ci.org/uu1t/hanpen.zsh-theme)

> :art: Hanpen Oh My Zsh theme

![screenshot](./screenshot.png)

## Dependencies

- [Oh My Zsh](https://github.com/robbyrussell/oh-my-zsh)
(specifically [lib/git.zsh](https://github.com/robbyrussell/oh-my-zsh/blob/master/lib/git.zsh) and [lib/theme-and-appearance.zsh](https://github.com/robbyrussell/oh-my-zsh/blob/master/lib/theme-and-appearance.zsh) in Oh My Zsh)

### Optional dependencies

- [zsh-async](https://github.com/mafredri/zsh-async)

## 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](https://github.com/mafredri/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 to `ZSH_THEME_HANPEN_DIRCOLORS_THEME_PATH` variable.
- Install GNU Source-highlight `src-hilite-lesspipe.sh` into a directory in `$PATH`.
- Install [sindresorhus/pretty-time-zsh](https://github.com/sindresorhus/pretty-time-zsh).

## Others

In the screenshot, followings are used:

- [zsh-syntax-highlighting](https://github.com/zsh-users/zsh-syntax-highlighting)
- Tomorrow Night in [iTerm2-Color-Schemes](https://github.com/mbadolato/iTerm2-Color-Schemes)
- `dircolors.256dark` in [dircolors-solarized](https://github.com/seebi/dircolors-solarized)
- [Source Code Pro](https://github.com/adobe-fonts/source-code-pro)

## License

MIT