Giter Site home page Giter Site logo

sorin's Introduction

sorin

A fork of the sorin theme.

What does it show?

  • On the left:
    • username@hostname when in a ssh session.
    • Working directory.
    • # when you're root.
    • Keymap indicator.
  • On the right:
    • Python venv indicator.
    • when there was an error.
    • V when in a vim terminal.
    • Git information when you are in a git repo:
      • Current branch name. When in 'detached HEAD' state, the position or commit short hash.
      • and/or when there are commits ahead and/or behind of remote, respectively.
      • when there are stashed states.
      • when there are indexed files.
      • when there are unindexed files.
      • when there are untracked files.

Advanced settings

You can customize how the current working directory is shown with the prompt-pwd module settings.

The git indicators can be customized by changing the following git-info module context formats:

Context name Description Default format
action Special action name %F{default}:%F{1}%s
ahead Ahead of remote %F{5}⬆
behind Behind remote %F{5}⬇
branch Branch name %F{2}%b
commit Commit short hash %F{3}%c
indexed Indexed files %F{2}✚
unindexed Unindexed files %F{4}✱
position Commits from nearest tag %F{5}%p
stashed Stashed states %F{6}✭
untracked Untracked files %F{default}◼

Use the following command to override a git-info context format:

zstyle ':zim:git-info:<context_name>' format '<new_format>'

For detailed information about these and other git-info settings, check the git-info documentation.

These advanced settings must be overridden after the theme is initialized.

Requirements

Requires Zim's prompt-pwd module to show the current working directory, and git-info to show git information.

sorin's People

Contributors

ericbn avatar phi-mah avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sorin's Issues

Unable to customize directory length

I've tried to configure zstyle ':zim:prompt-pwd:fish-style' dir-length 4, but still see a directory length of 1. I believe this line is the root cause:

zstyle ':zim:prompt-pwd:fish-style' dir-length 1

Is there a way to override this value, while maintaining the default value of 1?

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.