diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-05-29 00:06:53 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-06-24 10:40:43 -0400 |
commit | 3f9168af59cbf0cea51afd1b52a59cd3bc0cad39 (patch) | |
tree | fda1ab9047763adcfa4bfe2c7f1c63681015c3cc /bin | |
parent | edb78cf95d337b1259dcb470896571bce6d2f2c0 (diff) | |
download | conf-3f9168af59cbf0cea51afd1b52a59cd3bc0cad39.tar.gz conf-3f9168af59cbf0cea51afd1b52a59cd3bc0cad39.zip |
track a few more things in the prompt
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/fancy-prompt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/fancy-prompt b/bin/fancy-prompt index e5eca30..d398076 100755 --- a/bin/fancy-prompt +++ b/bin/fancy-prompt @@ -309,16 +309,19 @@ sub git_info { if (system(q[git diff-index --cached --no-ext-diff --ignore-submodules --quiet HEAD])) { $dirty .= '+'; } + if (`git ls-files -o --exclude-standard 2>/dev/null`) { + $dirty .= '?'; + } } else { - $dirty = '?'; + $dirty = '!'; } chomp(my $branch = `git symbolic-ref -q HEAD 2>/dev/null` || $HEAD); $branch =~ s{^refs/heads/}{}; - my $local_commits = ''; + my $local_commits = '-'; if (!system(qq[git show-ref -q --verify "refs/remotes/origin/$branch"])) { chomp(my $base = `git merge-base HEAD origin/$branch`); chomp(my $head = `git rev-parse HEAD`); |