Giter VIP home page Giter VIP logo

sobole-zsh-theme's Introduction

sobole

Minimalistic zsh theme inspired by the old-fashioned hobbies. No verbose gimmicks, no emoji, no fidget spinners, and no other visual noise.

Works best with oh-my-zsh and zsh-syntax-highlighting installed.

Also provides a builtin fzf theme.

Showcase

Light mode (SOBOLE_THEME_MODE=light):

sobole.zsh-theme

And dark mode (SOBOLE_THEME_MODE=dark):

sobole.zsh-theme

There are more examples provided in the showcases directory.

Installation

zplug

zplug:

zplug 'sobolevn/sobole-zsh-theme', as:theme

Manual

Just copy the sobole.zsh-theme to your ~/.oh-my-zsh/custom/themes/ folder.

This set of commands will probably do what you want:

git clone https://github.com/sobolevn/sobole-zsh-theme.git
ln -s $PWD/sobole-zsh-theme/sobole.zsh-theme ~/.oh-my-zsh/custom/themes/sobole.zsh-theme

Then set ZSH_THEME="sobole" inside your .zshrc.

Here's the official docs on how to do that.

Features

virtualenv, git, ls, grep, fzf, syntax highlight, autocomplete colors, pretty error codes, different users, different color modes.

This theme also exports $SOBOLE_SYNTAX_THEME variable with either 'GitHub' for light mode or 'Dracula' to be used with tools like bat or delta.

Configuration

This theme supports several configuration options, which are provided as env variables:

$SOBOLE_THEME_MODE - sets the theme mode. There are two options available: light (set by default) and dark. Internally changes some colors when set to dark to give the best look on both color schemes.

$SOBOLE_MAX_DIR_LEN - sets the maximum width of a displayed directory name. Defaults to 65.

$SOBOLE_DEFAULT_USER - this options sets how the user is displayed. User is not displayed until it equals $SOBOLE_DEFAULT_USER, but imagine you executed sudo su - admin, that's how it will look like:

sobole-user-showcase

$SOBOLE_SYNTAX_HIGHLIGHTING - tweaks zsh-syntax-highlighting. If it is installed, modifies string colors, some other minor things. Enabled by default. Set it to 'false' if you do not want these tweaks. That's how it looks like:

sobole-syntax-highlighting-showcase

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-fzf-tweaks

$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

Indications

sobole supports some icons (not many of them!) to indicate what is going on. Almost all of them are about git repository status. And one icon idicates that last command did not succeed.

Symbol Meaning
Repository is dirty
Repository is clean
§ Repository has unmerged changes
Repository has added files
⚠️ Last command resulted in error

Fonts

You can choose any font that prints unicode symbols. In the examples Menlo Regular is used.

You can install it with: brew cask install font-menlo-for-powerline. Or download it here.

And then configure your terminal's font setting.

Using this theme

Are you using sobole? Add link to your dotfiles! Currently using:

References

This theme borrows some setup from avit and obraun themes.

License

WTFPL: do the fuck you want. If you had sold it, let me know just for fun.

sobole-zsh-theme's People

Contributors

avonheimburg avatar brandonmbanks avatar dependabot[bot] avatar duydang2311 avatar sobolevn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sobole-zsh-theme's Issues

Unicode error in multiline output

Since last update I have found this little yet annoying bug: after some command exists with non-zero status code my theme looks and feels broken.

Initial view:
2018-11-11 23 18 28

Regular command, works fine:

2018-11-11 23 18 38

Error code is now shown, prompt is broken, note its position:

2018-11-11 23 18 47

It also affect how autocompletion works. Some random chars tend to appear in the suggestions.

I have tested this bug on several terminals, no changes.
Version information: zsh 5.6.2 (x86_64-apple-darwin15.6.0)

After some debugging I was able to track down this problem to :high-voltage-sign: unicode sing.
That I use for error status reporting. https://emojipedia.org/high-voltage-sign/

When I delete it, that's what happens:

2018-11-11 23 43 27

Everything looks normal again, spaces are respected.

git_prompt_info and git_prompt_status don't work in the omz version master (0c80a06)

After the last omz update, the branch and repository status stopped being displayed. I saw that there were some changes related to this in the latest version.

  • ec1afe9 [git]
    The new async prompt feature will render prompt information asyncronously and degrade nicely when
    the calls take too long to finish, as the prompt will already be first drawn and interactive.
    This is enabled by default for the git prompt and themes that use it (git_prompt_info). If you
    find that it's not working for you, please open an issue if one is not already opened, and see
    https://github.com/ohmyzsh/ohmyzsh#disable-async-git-prompt for how to turn it off.

This problem occurs on an Apple M1 Pro device with operating system 13.6 Ventura

GREP_OPTIONS is dreprecated

Since at least GNU grep 2.21, the environment variable GREP_OPTIONS is deprecated. Setting it leads to an error message on theme load and every subsequent grep invocation:

» grep --version
grep: warning: GREP_OPTIONS is deprecated; please use an alias or script
grep (GNU grep) 2.25

That is quire annoying. The offending entry is around line 150:

export GREP_COLOR='1;35'
export GREP_OPTIONS='--color=auto'

Please consider removing it and invoking grep directly with the necessary options set.

Icons meaning

First of all thanks for the theme, I liked it a lot.

Where can I get info about the icons meaning?

For example, when working on git I sometimes see a star, a red thunderbolt with a number, etc. but I don't understand what their meaning is, and couldn't find anything related.

Make dark theme

Right now some colors are not readable on a black screen.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.