Skip to content

Commit

Permalink
Add less theme
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed May 5, 2024
1 parent 0c73f23 commit 050d921
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 3 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ If this setting is set to `'false'`, then `$SOBOLE_SYNTAX_THEME` is not exported

`$SOBOLE_FZF_THEME` - tweaks `fzf` theme if it installed. Set it to `'false'` if you do not want these tweaks. That's how it looks like:

![sobole-syntax-highlighting-showcase](https://raw.githubusercontent.com/sobolevn/sobole-zsh-theme/master/showcases/fzf-tweaks.png)
![sobole-fzf-tweaks](https://raw.githubusercontent.com/sobolevn/sobole-zsh-theme/master/showcases/fzf-tweaks.png)

`$SOBOLE_LESS_THEME` - tweaks `less` pager. Set it to `'false'` if you do not want these tweaks. That's how it looks like:

![sobole-less-tweaks](https://raw.githubusercontent.com/sobolevn/sobole-zsh-theme/master/showcases/less-tweaks.png)


## Indications
Expand Down
11 changes: 11 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,17 @@ <h3>Still not convinced? Look at the showcase!</h3>
</div>
</div>

<div class="showcase">
<p class="showcase-title"><code>less</code> theme</p>
<div class="image-wrapper">
<img
class="image-switchable"
src="https://raw.githubusercontent.com/sobolevn/sobole-zsh-theme/master/showcases/less-tweaks.png"
data-src="https://raw.githubusercontent.com/sobolevn/sobole-zsh-theme/master/showcases/less-tweaks-dark.png"
>
</div>
</div>

</div>
</section>

Expand Down
Binary file added showcases/less-tweaks-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added showcases/less-tweaks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 7 additions & 2 deletions sobole.zsh-theme
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,13 @@ fi
# ----------------------------------------------------------------------------

if [[ "$SOBOLE_LESS_THEME" != 'false' ]]; then
export LESS_TERMCAP_mb="$(printf '\e[1;34m')"
export LESS_TERMCAP_md="$(printf '\e[1;34m')"
if [[ "$SOBOLE_THEME_MODE" == 'dark' ]]; then
export LESS_TERMCAP_mb="$(printf '\e[1;35m')"
export LESS_TERMCAP_md="$(printf '\e[1;35m')"
else
export LESS_TERMCAP_mb="$(printf '\e[1;34m')"
export LESS_TERMCAP_md="$(printf '\e[1;34m')"
fi
export LESS_TERMCAP_me="$(printf '\e[0m')"
export LESS_TERMCAP_se=$(printf '\e[0m')
export LESS_TERMCAP_so=$(printf '\e[30m')
Expand Down

0 comments on commit 050d921

Please sign in to comment.