845eabc8cc86ebfcab7a9ebca5eb87aa136e9ce3
- Author
- Geoff Garside <geoff@geoffgarside.co.uk>
- Committer
- Geoff Garside <geoff@geoffgarside.co.uk>
- Date
Message
Restructure spaces in git pieces
Diff
1diff --git a/git.zsh b/git.zsh
2index 805969b71bff4516bdf64ff08dcf509b884949cb..a8e2e36aa46543c11503beef292e1527c7211901 100644
3--- a/git.zsh
4+++ b/git.zsh
5@@ -4,7 +4,7 @@ function git_prompt_info() {
6 branch=${ref#refs/heads/}
7
8 if [[ -d .git ]]; then
9- CURRENT_BRANCH="(%{$fg[red]%}${branch}%{$reset_color%}) $(parse_git_dirty) "
10+ CURRENT_BRANCH="(%{$fg[red]%}${branch}%{$reset_color%})$(parse_git_dirty) "
11 else
12 CURRENT_BRANCH=''
13 fi
14@@ -13,5 +13,5 @@ function git_prompt_info() {
15 }
16
17 parse_git_dirty () {
18- [[ $(git status | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "%{$fg[yellow]%}✗%{$reset_color%}"
19+ [[ $(git status | tail -n1) != "nothing to commit (working directory clean)" ]] && echo " %{$fg[yellow]%}✗%{$reset_color%}"
20 }