Giter Site home page Giter Site logo

s1ck94's Introduction

s1ck94

A fork of the (first deprecated, now extinct) minimal prompt by S1cK94.

What does it show?

Let's breakdown the left prompt (from left to right):

  • User privilege:
    • On color if root.
    • Off color if not.
  • Background jobs:
    • On color if 1 or more jobs in background.
    • Off color if 0 jobs.
  • Keymap indicator:
    • On color if in main or vi insert mode.
    • Off color if in vi command mode.
  • Exit status:
    • On color if last command returned 0.
    • Error color if not.

On the right prompt:

  • The current working directory.
  • Git branch name, or commit short hash when in 'detached HEAD' state, only when you are in a git repo. The segment color shows different statues:
    • Error color if dirty or diverged from remote.
    • Yellow if behind.
    • Off color if ahead.
    • On color if none of the above.

Settings

This theme can be customized with the following environment variables. If the variable is not defined, the respective default value is used.

Variable Description Default value
PROMPT_CHAR Prompt character โฏ
ON_COLOR On color green
OFF_COLOR Off color default
ERR_COLOR Error color red

Advanced settings

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

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

Requirements

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

s1ck94's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

s1ck94's Issues

Please add a license and a screen shot

I'd like to add this to awesome-zsh-plugins, but it doesn't have a license or a screen shot.

Please add a screen shot so people can see what the theme will look like without having to install it.

Also, please add a license, some people won't use any code that doesn't have an open source license. If you don't have one in mind, https://choosealicense.com is a good resource to help you pick one.

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.