Git Product home page Git Product logo

winline's Introduction

winline

Asyncify version of Greg Hurrell's zsh prompt

Feature

taken from https://github.com/wincent/wincent/blob/master/README.md#prompt

Visible here are:

  • Concise left-hand prompt consisting of:
  • Extended right-hand size prompt which auto-hides when necessary to make room for long commands and contains:
    • Duration of previous command in adaptive units (seconds, minutes, hours, days, depending on duration).
    • An async git prompt consists of:
      • Current version control branch name.
      • Current version control worktree status using colors that match those used in git status:
        • Green dot indicates staged changes.
        • Red dot indicates unstaged changes.
        • Blue dot indicates untracked files.
    • Full version of current working directory (again, abbreviating $HOME to ~).

Nested shells are indicated with additional prompt characters. For example, one nested shell:

Two nested shells:

Root shells are indicated with a different color prompt character and the word "root":

Nesting within a root shell is indicated like this:

Two nested shells:

If the last command exited with a non-zero status (usually indicative of an error), a yellow exclamation is shown:

If there are background processes, a yellow asterisk is shown:

Why

Installation

  1. Clone this repository
$ git clone https://github.com/khuei/winline.git
  1. Add the repository to $fpath in .zshrc
fpath+=/path/to/winline
  1. source either winline.zsh or winline.plugin.zsh in .zshrc
. /path/to/winline.zsh

# or

. /path/to/winline.plugin.zsh

Fallback

This prompt is heavily tailored to my needs so it is not very customizable compare to other mainstream zsh prompts such as:

Therefore, it is highly encourage that you use either one of the above or a different prompt if you want more granular customization or advance feature.

winline's People

Contributors

khuei avatar

Stargazers

dubu avatar

Watchers

James Cloos avatar  avatar

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.