diff options
author | Michael Allen <michael@michaelallen.io> | 2015-08-19 09:35:16 +0100 |
---|---|---|
committer | Michael Allen <michael@michaelallen.io> | 2015-08-19 09:35:16 +0100 |
commit | 72fca3c9a52dd8b8c2970c43e7cbee1b94f2f707 (patch) | |
tree | 5d6741691dee209ea33d0c990241a509301537d8 | |
parent | 2f4f10e312a0767a96c654937d7a4706ff60ce0e (diff) | |
download | git-sonar-72fca3c9a52dd8b8c2970c43e7cbee1b94f2f707.tar.gz git-sonar-72fca3c9a52dd8b8c2970c43e7cbee1b94f2f707.zip |
Reduce the number of subshells, for performance
Diffstat (limited to '')
-rwxr-xr-x | prompt.zsh | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -5,7 +5,12 @@ source "$dot/git-base.sh" if is_repo; then autoload colors && colors - git_prefix="%{$fg_bold[black]%}git:(%{$reset_color%}" + git_prefix="%{$fg_bold[black]%} git:(%{$reset_color%}" git_suffix="%{$fg_bold[black]%})%{$reset_color%}" - printf '%s' " $git_prefix$(zsh_color_remote_commits;branch_name;zsh_color_local_commits)$git_suffix$(zsh_color_changes_status)" + printf '%s' $git_prefix + zsh_color_remote_commits + branch_name + zsh_color_local_commits + printf '%s' $git_suffix + zsh_color_changes_status fi |