Comments (7)
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.
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.
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.
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.
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.
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.
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)
- Some identification characters cannot be displayed HOT 3
- Display Problem on Ubuntu-18.04
- no display with shell HOT 1
- [help] Change Default path to minified version? HOT 1
- Broken prompt after another oh-my-zsh upgrade HOT 6
- display blanks from webstorm terminal HOT 2
- How can I shorten the prompt? HOT 2
- broken auto complete HOT 1
- An Empty Space Between the Segments on Windows Terminal?
- inside .git folders Agnoster produces "fatal: this operation must be run in a work tree"
- Problem with characters HOT 8
- Anaconda/Miniconda Python Virtual Environment displaying error
- warp Terminal is showing $SEGMENT_SEPARATOR on black when is in a git repo
- Agnoster Prompt triangles look separated HOT 3
- Font issues HOT 2
- Full prompt in same color !! HOT 1
- Please add a license file
- prompt no coloring HOT 1
- Issue with typed text not showing up in cmder
- messed up char on shell prompt HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from agnoster-zsh-theme.