Skip to content

Commit

Permalink
fix: fix reset style (sgr_reset) in manually used without `oh-my-zs…
Browse files Browse the repository at this point in the history
…h` or `zmodload zsh/colors`
  • Loading branch information
zthxxx committed Nov 14, 2021
1 parent bf8cdb9 commit bef0d75
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 14 deletions.
47 changes: 39 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,66 @@
> Note: you can run `echo ${JOVIAL_VERSION}` in terminal to see what version you used now.

## 2.2.0
<br />


## v2.2.1

### Fix

- fix reset style (`sgr_reset`) in manually used without `oh-my-zsh` or `zmodload zsh/colors`

<br />


## v2.2.0

### Style

- add default color for typing-pointer and customization, darken the normal color

## 2.1.4
<br />


## v2.1.4

### Fix

- fix progress display miss in git rebase interactive

## 2.1.3
<br />


## v2.1.3

### Fix

- fix async job rerun with wrong edge case

## 2.1.2
<br />


## v2.1.2

### Chore

- set xterm 256 color mode by default, for out-of-the-box effect in [gnu/screen](https://www.gnu.org/software/screen/) or [tmux](https://github.com/tmux/tmux)

## 2.1.1
<br />


## v2.1.1

### Fix

- remove read stdin for block subprocess,

we found this cause zpty callback blocked in zsh v5.3

## 2.1.0
<br />


## v2.1.0

### Perf

Expand All @@ -51,8 +78,10 @@

- fix bug that rerender will eat previous line

<br />

## 2.0.3

## v2.0.3

### Fix

Expand All @@ -65,8 +94,10 @@
- remove useless git cli params in theme, and remove plugin macos in installer
- always reinstall `zsh-history-enquirer` by npm

<br />


## 2.0.0
## v2.0.0

### Feat

Expand Down
14 changes: 8 additions & 6 deletions jovial.zsh-theme
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# https://github.com/zthxxx/jovial


export JOVIAL_VERSION='2.2.0'
export JOVIAL_VERSION='2.2.1'


# Development code style:
Expand All @@ -28,11 +28,13 @@ export VIRTUAL_ENV_DISABLE_PROMPT=true

export TERM=xterm-256color

# SGR (Select Graphic Rendition) parameters
# to disable all visual effects
# https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_(Select_Graphic_Rendition)_parameters
# "%{ %}" is need for Prompt-Expansion (vcs_info style) (most used in `print -P`)
typeset -g sgr_reset="%{${reset_color}%}"
# `\e[00m` is SGR (Select Graphic Rendition) parameters
# which to disable all visual effects.
# this literal as same as `reset_color` defined in [zsh/colors](https://github.com/zsh-users/zsh/blob/zsh-5.8/Functions/Misc/colors#L98)
#
# SGR link: https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_(Select_Graphic_Rendition)_parameters
# "%{ %}" is escape values in Prompt-Expansion (vcs_info style) (for used in `print -P`)
typeset -g sgr_reset="%{\e[00m%}"


# jovial theme element symbol mapping
Expand Down

0 comments on commit bef0d75

Please sign in to comment.