Pure: Turn off `git` information

Created on 5 Sep 2019  路  8Comments  路  Source: sindresorhus/pure

Pure is fantastic! I use it everywhere I can.

To that end, installing it on remote servers is useful, but I find the git information there useless as I don't issue any git commands or care about git in those contexts.

Can I turn the git integration off completely?

Most helpful comment

@bigH It's not implemented yet. I'm suggesting a possible API for it.

All 8 comments

Makes sense. This would also be useful for people that use Mercurial (#313).

I think we could implement the setting like we did with colors, using zstyle.

Maybe zstyle :prompt:pure git false?

@mafredri Thoughts?

That didn't work.

@bigH It's not implemented yet. I'm suggesting a possible API for it.

I think we could do that, but TBH the zstyle syntax always confuses me, there also doesn't seem to be a best practice.

Do we use:

  • zstyle :prompt:pure git false like you suggested, or...
  • zstyle :prompt:pure:git enable false (or disable true)
  • zstyle :prompt:pure:vcs git false, etc...

These all look different when viewing the output of zstyle too.

I guess there's no way to do zstyle :prompt:pure:git false which would have been the nicest.

I think we should go for zstyle :prompt:pure:git isEnabled false, and we standardize on isEnabled for anything that is toggled. Can we use camelCase? Alternatively, enabled.

This would be very nice indeed. With iTerm2 now supporting a dedicated statusbar that can provide much of this information it would be nice if pure could be configured do do as little as possible, so that the extras can be offloaded off to the statusbar.

any update?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

harukizaemon picture harukizaemon  路  10Comments

julenpardo picture julenpardo  路  5Comments

rawaludin picture rawaludin  路  3Comments

tyrollins picture tyrollins  路  4Comments

Hotschke picture Hotschke  路  8Comments