diff options
author | Michael Allen <michael@michaelallen.io> | 2015-08-06 10:03:34 +0100 |
---|---|---|
committer | Michael Allen <michael@michaelallen.io> | 2015-08-06 10:03:34 +0100 |
commit | bff1f0488e7b3cb1f4b89c698dbc282bd9a5c0aa (patch) | |
tree | 1a1d37a9020a0a458e6785739c0227816c22996f /prompt.sh | |
parent | 6b40c172f04036931886a92c200197ef7bd9917f (diff) | |
download | git-sonar-bff1f0488e7b3cb1f4b89c698dbc282bd9a5c0aa.tar.gz git-sonar-bff1f0488e7b3cb1f4b89c698dbc282bd9a5c0aa.zip |
Preserve whitespace in function results
Diffstat (limited to 'prompt.sh')
-rwxr-xr-x | prompt.sh | 20 |
1 files changed, 1 insertions, 19 deletions
@@ -1,23 +1,5 @@ source ./git-base.sh -local_ahead="$(commits_ahead_of_remote)" -ahead_arrow="↑" - -if [[ ("$local_ahead" -gt 0) ]]; then - local_ahead=" ${local_ahead}${ahead_arrow}" -else - local_ahead="" -fi - -local_behind="$(commits_behind_of_remote)" -behind_arrow="↓" - -if [[ "$local_behind" -gt "0" ]]; then - local_behind=" ${local_behind}${behind_arrow}" -else - local_behind="" -fi - -prompt="$(branch_name) $(bash_color_local_commits) $(bash_color_changes_status)" +prompt="$(branch_name)$(bash_color_local_commits)$(bash_color_changes_status)" echo $prompt |