Code Monkey home page Code Monkey logo

Comments (7)

MichaelAquilina avatar MichaelAquilina commented on September 27, 2024

This is probably something specific for oh-my-zsh. I opened a PR that will allow you to disable it though: #40

from agnoster-zsh-theme.

apjanke avatar apjanke commented on September 27, 2024

Yup, that's an Oh My Zsh feature that only works with OMZ themes that use OMZ's [git_prompt_info()])https://github.com/robbyrussell/oh-my-zsh/blob/1c958e02a5613a4312534b1afe9f9f8c4a0793c2/lib/git.zsh#L2-L9) function. (Or have been otherwise coded to respect it.)

You might want to add the ability to check a similar agnoster.hide-status git configuration variable in Agnoster as well, instead of just variables to globally disable segments of the prompt. The purpose of this config option isn't to disable the git status display globally, but to allow you to set it per-repo so you can turn off status checking on ginormous or network-filesystem repos where the git status command would take a long time to run and slow down your prompt.

Or I guess you could just piggyback off oh-my-zsh.hide-status. It's a bit of a branding wart, but the semantics are compatible with Agnoster.

(In a perfect world, we might have a generic git config --add shell-theme.hide-status 1 that we could all (OMZ, Agnoster, Prezto, Antigen) share. But that would take a conference committee to agree on a standard naming scheme.)

from agnoster-zsh-theme.

MichaelAquilina avatar MichaelAquilina commented on September 27, 2024

I wasnt aware of this issue existing @apjanke, thanks for the insight. It seems like it might be worth another PR to fix that exact problem?

from agnoster-zsh-theme.

apjanke avatar apjanke commented on September 27, 2024

Yeah, and I can take a stab at it.

Do you think it would be better to use a new agnoster.hide-status config, or reuse the oh-my-zsh.hide-status one, even though this isn't really OMZ?

On the upside, reusing the oh-my-zsh.hide-status one might make it easier to downstream changes to OMZ's version of Agnoster, which I bet is a major user base of Agnoster.

from agnoster-zsh-theme.

MichaelAquilina avatar MichaelAquilina commented on September 27, 2024

do you think there would be any negative side effects from using oh-my-zsh.hide-status? (Apart from some confusion as to why its being used). I agree that being able to merge these upstreamdownstream is a good side effect from taking this approach.

from agnoster-zsh-theme.

apjanke avatar apjanke commented on September 27, 2024

I don't think so – I can't see any situation where a user would want to suppress the status in OMZ themes, but not in plain Agnoster.

Of course, organizationally, you run the risk of getting more OMZ bug reports accidentally filed against Agnoster now that the name oh-my-zsh is in its source code. Hmmm.

from agnoster-zsh-theme.

apjanke avatar apjanke commented on September 27, 2024

Status update: sorry, I'm too busy with other stuff to make a go at this any time soon.

from agnoster-zsh-theme.

Related Issues (20)

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.