-
-
Notifications
You must be signed in to change notification settings - Fork 983
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Turn off git
information
#497
Comments
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 Do we use:
These all look different when viewing the output of |
I guess there's no way to do I think we should go for |
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? |
Does Pure support being able to do this per-repo/dir like Oh My Zsh does? OMZ example: .git/config |
@o6uoq we don't support it, but it's a nice thought. Although, I'd like to see some standardization around this, there's no point in every shell setup doing their own thing, it'd be much nicer if it was, say, under Pros of
Cons:
|
Not a general solution, but I had a use case for only removing the Git prompt in my diff --git a/pure.zsh b/pure.zsh
index fc4e85c..510c90c 100644
--- a/pure.zsh
+++ b/pure.zsh
@@ -143,21 +143,23 @@ prompt_pure_preprompt_render() {
preprompt_parts+=('%F{${prompt_pure_colors[path]}}%~%f')
# Git branch and dirty status info.
- typeset -gA prompt_pure_vcs_info
- if [[ -n $prompt_pure_vcs_info[branch] ]]; then
- preprompt_parts+=("%F{$git_color}"'${prompt_pure_vcs_info[branch]}'"%F{$git_dirty_color}"'${prompt_pure_git_dirty}%f')
- fi
- # Git action (for example, merge).
- if [[ -n $prompt_pure_vcs_info[action] ]]; then
- preprompt_parts+=("%F{$prompt_pure_colors[git:action]}"'$prompt_pure_vcs_info[action]%f')
- fi
- # Git pull/push arrows.
- if [[ -n $prompt_pure_git_arrows ]]; then
- preprompt_parts+=('%F{$prompt_pure_colors[git:arrow]}${prompt_pure_git_arrows}%f')
- fi
- # Git stash symbol (if opted in).
- if [[ -n $prompt_pure_git_stash ]]; then
- preprompt_parts+=('%F{$prompt_pure_colors[git:stash]}${PURE_GIT_STASH_SYMBOL:-≡}%f')
+ if [[ $prompt_pure_vcs_info[top] != $HOME ]]; then
+ typeset -gA prompt_pure_vcs_info
+ if [[ -n $prompt_pure_vcs_info[branch] ]]; then
+ preprompt_parts+=("%F{$git_color}"'${prompt_pure_vcs_info[branch]}'"%F{$git_dirty_color}"'${prompt_pure_git_dirty}%f')
+ fi
+ # Git action (for example, merge).
+ if [[ -n $prompt_pure_vcs_info[action] ]]; then
+ preprompt_parts+=("%F{$prompt_pure_colors[git:action]}"'$prompt_pure_vcs_info[action]%f')
+ fi
+ # Git pull/push arrows.
+ if [[ -n $prompt_pure_git_arrows ]]; then
+ preprompt_parts+=('%F{$prompt_pure_colors[git:arrow]}${prompt_pure_git_arrows}%f')
+ fi
+ # Git stash symbol (if opted in).
+ if [[ -n $prompt_pure_git_stash ]]; then
+ preprompt_parts+=('%F{$prompt_pure_colors[git:stash]}${PURE_GIT_STASH_SYMBOL:-≡}%f')
+ fi
fi
# Execution time. |
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 anygit
commands or care aboutgit
in those contexts.Can I turn the
git
integration off completely?The text was updated successfully, but these errors were encountered: