{"action":"created","issue":{"url":"https://api.github.com/repos/bhilburn/powerlevel9k/issues/76","labels_url":"https://api.github.com/repos/bhilburn/powerlevel9k/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/bhilburn/powerlevel9k/issues/76/comments","events_url":"https://api.github.com/repos/bhilburn/powerlevel9k/issues/76/events","html_url":"https://github.com/bhilburn/powerlevel9k/issues/76","id":101557437,"number":76,"title":"Unreadable vcs format string in left prompt","user":{"login":"alexzhuaz","id":6407653,"avatar_url":"https://avatars.githubusercontent.com/u/6407653?v=3","gravatar_id":"","url":"https://api.github.com/users/alexzhuaz","html_url":"https://github.com/alexzhuaz","followers_url":"https://api.github.com/users/alexzhuaz/followers","following_url":"https://api.github.com/users/alexzhuaz/following{/other_user}","gists_url":"https://api.github.com/users/alexzhuaz/gists{/gist_id}","starred_url":"https://api.github.com/users/alexzhuaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexzhuaz/subscriptions","organizations_url":"https://api.github.com/users/alexzhuaz/orgs","repos_url":"https://api.github.com/users/alexzhuaz/repos","events_url":"https://api.github.com/users/alexzhuaz/events{/privacy}","received_events_url":"https://api.github.com/users/alexzhuaz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-18T02:51:46Z","updated_at":"2015-08-18T16:25:37Z","closed_at":null,"body":"Recently I updated the powerlevel9k to latest master branch and I find a small bug in left prompt.\r\nIf the vcs repository backend is git-svn, the left prompt will extend with a string 'git-svn' which is very hard to read because it's font color is same as default foreground color.\r\nSo I made a small fix to solve the problem, hope it can help others with the same problem.\r\n\r\ndiff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme\r\nindex 1b52d03..1fed0d9 100644\r\n--- a/powerlevel9k.zsh-theme\r\n+++ b/powerlevel9k.zsh-theme\r\n@@ -217,7 +217,7 @@ zstyle ':vcs_info:*' enable git hg\r\n zstyle ':vcs_info:*' check-for-changes true\r\n\r\n VCS_DEFAULT_FORMAT=\"$VCS_CHANGESET_PREFIX%F{$VCS_FOREGROUND_COLOR}%b%c%u%m%f\"\r\n-zstyle ':vcs_info:git:*' formats \"%F{$VCS_FOREGROUND_COLOR}$VCS_GIT_ICON%f$VCS_DEFAULT_FORMAT\"\r\n+zstyle ':vcs_info:(git|git-svn):*' formats \"%F{$VCS_FOREGROUND_COLOR}$VCS_GIT_ICON%f$VCS_DEFAULT_FORMAT\"\r\n zstyle ':vcs_info:hg:*' formats \"%F{$VCS_FOREGROUND_COLOR}$VCS_HG_ICON%f$VCS_DEFAULT_FORMAT\"\r\n\r\n zstyle ':vcs_info:*' actionformats \" %b %F{red}| %a%f\"\r\n@@ -225,7 +225,7 @@ zstyle ':vcs_info:*' actionformats \" %b %F{red}| %a%f\"\r\n zstyle ':vcs_info:*' stagedstr \" %F{$VCS_FOREGROUND_COLOR}$VCS_STAGED_ICON%f\"\r\n zstyle ':vcs_info:*' unstagedstr \" %F{$VCS_FOREGROUND_COLOR}$VCS_UNSTAGED_ICON%f\"\r\n\r\n-zstyle ':vcs_info:git*+set-message:*' hooks vcs-detect-changes git-untracked git-aheadbehind git-stash git-remotebranch git-tagname\r\n+zstyle ':vcs_info:(git|git-svn)*+set-message:*' hooks vcs-detect-changes git-untracked git-aheadbehind git-stash git-remotebranch git-tagname\r\n zstyle ':vcs_info:hg*+set-message:*' hooks vcs-detect-changes\r\n\r\n # For Hg, only show the branch name\r\n"},"comment":{"url":"https://api.github.com/repos/bhilburn/powerlevel9k/issues/comments/132266189","html_url":"https://github.com/bhilburn/powerlevel9k/issues/76#issuecomment-132266189","issue_url":"https://api.github.com/repos/bhilburn/powerlevel9k/issues/76","id":132266189,"user":{"login":"dritter","id":1544760,"avatar_url":"https://avatars.githubusercontent.com/u/1544760?v=3","gravatar_id":"","url":"https://api.github.com/users/dritter","html_url":"https://github.com/dritter","followers_url":"https://api.github.com/users/dritter/followers","following_url":"https://api.github.com/users/dritter/following{/other_user}","gists_url":"https://api.github.com/users/dritter/gists{/gist_id}","starred_url":"https://api.github.com/users/dritter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dritter/subscriptions","organizations_url":"https://api.github.com/users/dritter/orgs","repos_url":"https://api.github.com/users/dritter/repos","events_url":"https://api.github.com/users/dritter/events{/privacy}","received_events_url":"https://api.github.com/users/dritter/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T16:25:37Z","updated_at":"2015-08-18T16:25:37Z","body":"Hey @alexzhuaz !\r\nThanks for the patch. Looks good to me. Could you submit a proper pull request? I don't want to steal your credit. ;)"}}