Droolscar is zsh theme.
You need Nerd Fonts.
The following fonts are recommended for Japanese.
Show user id and os icon (Linux or Mac).
Show current directory name.
Show current git author name. If you use git-duet, show all author names.
Show git current branch name.
Show git status as follows.
✚
: exist staged file(s).●
: exist unstaged file(s).
Show git stash num. If exist stash, text color is changed to red.
Show git remote names.
If exist multiple remote (ex, master
and heroku
), show all.
If exist 'not pushed commits', counted numbers show by negative. And text color is changed to yellow.
If exist 'not pulled commits', counted numbers show by positive. And text color is changed to red.
Show current time.
If prev command's exit code is not 0, background color is changed to red.
By zinit
$ echo 'zinit light "isuke/droolscar"' >> ~/.zshrc
By zplug
$ echo 'zplug "isuke/droolscar", as:theme' >> ~/.zshrc
$ git clone git@github.com:isuke/droolscar.git
$ echo 'source /your/path/droolscar/droolscar.zsh-theme' >> ~/.zshrc
Environment Variable | Default Value | Description |
---|---|---|
DROOLSCAR_DATE_FORMAT |
"+%m/%d %H:%M:%S" |
current date time format. |
DROOLSCAR_LANGS |
() |
which programming lang versions by mise on right. ex) (ruby node go) |
DROOLSCAR_ABSOLUTE_PATH_MAX_LENGTH |
$(( COLUMNS * 0.2 ))} |
show current absolute path max length on right. don't show if set 0 . |
DROOLSCAR_SEGMENT_SEPARATOR |
"" (U+E0B0) |
separate character of each segment for left. |
DROOLSCAR_SEGMENT_SEPARATOR_R |
"" (U+E0B2) |
separate character of each segment for right. |
- hard_divider (default)
- left:
""
(U+E0B0) - right:
""
(U+E0B2)
- left:
- triangle1
- left:
""
(U+E0B8) - right:
""
(U+E0BE)
- left:
- triangle2
- left:
""
(U+E0BC) - right:
""
(U+E0BA)
- left:
- half_circle_thick
- left:
""
(U+E0B4) - right:
""
(U+E0B6)
- left:
- flame_thick
- left:
""
(U+E0C0) - right:
""
(U+E0C2)
- left:
- ice_waveform
- left:
""
(U+E0C8) - right:
""
(U+E0CA)
- left: