Giter Site home page Giter Site logo

zap-prompt's Introduction

zap-prompt

A simple theme to use with zap

It renders the zap-prompt (⚡ ➜) followed by the CWD followed by VCS info (if in a repo directory)

Screenshot from 2023-01-04 11-30-45

zap-prompt's People

Contributors

antpeixe avatar christianchiarulli avatar devadathanmb avatar mamaraddio 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

zap-prompt's Issues

"this operation must be run in a work tree" when working directory is a bare repo

Replication steps:

  • create a new directory with a bare git repo ("git init --bare")
  • cd into it

The prompt will show
fatal: this operation must be run in a work tree

I think the git status --porcelain is the culprit but I haven't managed to redirect the stderr properly or test if that's even a correct fix.

This is pretty annoying for people that work with bare repositories as a root for "git worktree" commands.

This also affects forks like "MAHcodes/distro-prompt"

bug: git info blue bleeds to command

I believe there is a missing reset color at the end of the last zstyle for the git info. As a consequence the color bleeds to the command when in a git folder

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.