summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-02-23 11:05:25 -0600
committerJesse Luehrs <doy@tozt.net>2012-02-23 11:07:04 -0600
commit957323ae7f1a86f554aead2fe59e4e4af08bf9ca (patch)
tree495f36c59fc24a285eefd8c362512e2e3851ab9c /bin
parent0a7b45d752df0f61588013fc828f5daaf67981b5 (diff)
downloadconf-957323ae7f1a86f554aead2fe59e4e4af08bf9ca.tar.gz
conf-957323ae7f1a86f554aead2fe59e4e4af08bf9ca.zip
fix "repository state" output in the prompt
Diffstat (limited to 'bin')
-rwxr-xr-xbin/fancy-prompt6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/fancy-prompt b/bin/fancy-prompt
index b9cb193..c07c27e 100755
--- a/bin/fancy-prompt
+++ b/bin/fancy-prompt
@@ -335,13 +335,13 @@ sub git_info {
my $state = '';
if (-e "$git_dir/MERGE_HEAD") {
- $state = 'm';
+ $state = '(m)';
}
elsif (-d "$git_dir/rebase-apply" || -d "$git_dir/rebase-merge") {
- $state = 'r';
+ $state = '(r)';
}
elsif (-e "$git_dir/BISECT_START") {
- $state = 'b';
+ $state = '(b)';
}
$branch = '' if $branch eq 'master';