Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix PROMPT width when auto-completion is used #1

Merged
merged 1 commit into from

2 participants

ghsyeung Andrew Burgess
ghsyeung

If you type "git a", the prompt would turn into "-> git agit a" followed by the autocompletion list.

Adding the "%{ %}" around reset-color fixes this problem. I just copied that from other themes, not quite sure why it's necessary.

Nice tutorial on tutplus!

Andrew Burgess andrew8088 merged commit 9155096 into from
Andrew Burgess
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 17, 2012
  1. ghsyeung
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  themes/doubleend.zsh-theme
2  themes/doubleend.zsh-theme
View
@@ -46,7 +46,7 @@ print -rP '
$fg[cyan]%m: $fg[yellow]$(get_pwd)$(put_spacing)$(git_prompt_info) $(battery_charge)'
}
-PROMPT='$reset_color→ '
+PROMPT='%{$reset_color%}→ '
ZSH_THEME_GIT_PROMPT_PREFIX="[git:"
ZSH_THEME_GIT_PROMPT_SUFFIX="]$reset_color"
Something went wrong with that request. Please try again.