https://github.com/isuke/droolmaw
zsh theme
https://github.com/isuke/droolmaw
zsh-theme
Last synced: about 1 month ago
JSON representation
zsh theme
- Host: GitHub
- URL: https://github.com/isuke/droolmaw
- Owner: isuke
- License: mit
- Created: 2024-02-10T13:54:54.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-05-28T12:15:45.000Z (6 months ago)
- Last Synced: 2025-05-28T13:25:13.247Z (6 months ago)
- Topics: zsh-theme
- Language: Rust
- Homepage:
- Size: 1.34 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zsh-plugins - droolmaw - Configurable prompt that resembles [Powerline](https://github.com/powerline/powerline). Requires a [Nerd Font](https://github.com/ryanoasis/nerd-fonts). Includes decorators for username, current directory, current directory path, datetime, `git` author, `git` status, `mise` language version and a configurable message based on the exit status of the last command run. (Themes / ZSH on Windows)
- fucking-awesome-zsh-plugins - droolmaw - Configurable prompt that resembles <b><code> 14645โญ</code></b> <b><code> 1008๐ด</code></b> [Powerline](https://github.com/powerline/powerline)). Requires a <b><code> 60453โญ</code></b> <b><code> 3832๐ด</code></b> [Nerd Font](https://github.com/ryanoasis/nerd-fonts)). Includes decorators for username, current directory, current directory path, datetime, `git` author, `git` status, `mise` language version and a configurable message based on the exit status of the last command run. (Themes / ZSH on Windows)
README
# Droolmaw [](https://github.com/isuke/git-consistent) [](https://raw.githubusercontent.com/isuke/droolmaw/main/LICENSE)

**Droolmaw** is zsh theme.
You need [Nerd Fonts](https://www.nerdfonts.com/).
The following fonts are recommended for Japanese.
- [็ฝๆบ (ใฏใใใ๏ผHackGen)](https://github.com/yuru7/HackGen)
- [PlemolJP](https://github.com/yuru7/PlemolJP)
## How to Install
### 1. Prepare Setting File
Put the following file in your home directory as '.droolmaw.toml'.
```toml
l_separator = "๎ฐ"
r_separator = "๎ฒ"
[[l_components_first]]
name = "Id"
color = "Magenta"
[[l_components_first]]
name = "DirPath"
color = "Blue"
[[l_components_second]]
name = "DateTime"
color = "White"
ng_color = "Red"
[[l_components2]]
name = "None"
color = "White"
[[r_components]]
name = "Langs"
color = "Blue"
langs = ["rust"]
```
### 2. Download and Set
#### A. By [zinit](https://github.com/zdharma-continuum/zinit)
```sh
zinit ice from"gh-r" as"program"
zinit load "isuke/droolmaw"
prompt_precmd() {
export DROOLMAW_RETVAL=$?
PROMPT=`droolmaw`
PROMPT2=`droolmaw --2`
RPROMPT=`droolmaw --right`
}
add-zsh-hook precmd prompt_precmd
```
#### B. Compile by Yourself
```sh
git clone https://github.com/isuke/droolmaw.git
cd droolmaw
cargo build --release
export PATH="$PATH:/your/path/droolmaw/target/release"
prompt_precmd() {
export DROOLMAW_RETVAL=$?
PROMPT=`droolmaw`
PROMPT2=`droolmaw --2`
RPROMPT=`droolmaw --right`
}
add-zsh-hook precmd prompt_precmd
```
## Spec of Setting File
### key: l_separator and r_separator
- hard_divider
- l_separator: `"๎ฐ"` (U+E0B0)
- r_separator: `"๎ฒ"` (U+E0B2)
- triangle1
- l_separator: `"๎ธ"` (U+E0B8)
- r_separator: `"๎พ"` (U+E0BE)
- triangle2
- l_separator: `"๎ผ"` (U+E0BC)
- r_separator: `"๎บ"` (U+E0BA)
- half_circle_thick
- l_separator: `"๎ด"` (U+E0B4)
- r_separator: `"๎ถ"` (U+E0B6)
- flame_thick
- l_separator: `"๎"` (U+E0C0)
- r_separator: `"๎"` (U+E0C2)
- ice_waveform
- l_separator: `"๎"` (U+E0C8)
- r_separator: `"๎"` (U+E0CA)
### key: `name`
| value | option | description |
| ------------------------------- | ---------------- | ------------------------ |
| None | | none |
| Id | | id (user name) |
| Dir | | current directory name |
| DirPath | max_length = 123 (default: 50) | current directory path |
| DateTime | date_time_format = "+%y/%m/%d %H:%M:%S" (default: "+%m/%d %H:%M:%S") | date time |
| GitName | | git author name |
| GitCurrentBranchAndStatuses | | git current branch name and statuses |
| GitRemotesAndStatuses | | git remote name and statues |
| Langs | langs = ["ruby", "node", "rust", "python"] | The version of the language managed by [mise](https://github.com/jdx/mise) in the current directory |
| ResultText | ok_text = "ok" ng_text = "ng" | if prev command's exit code is 0 => print ok_text else => print ng_text |
### key: `color` and `ng_color`
| value |
| --------- |
| Black |
| Blue |
| Cyan |
| Green |
| Magenta |
| Red |
| White |
| Yellow |
The `color` is background color.
Background color is the `ng_color` instead of the `color` if prev command's exit code is not 0.