diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-09-16 11:10:03 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-09-16 11:10:10 -0400 |
commit | f0ec1c16ab053f6b49e9c4b92e8985c2a528ff2e (patch) | |
tree | edfc8c9033e4d10f1cc000e7a1ecd399a4205855 | |
parent | 570116fb7ef4bd7226fa82f993dc7e2fdb50532a (diff) | |
download | conf-f0ec1c16ab053f6b49e9c4b92e8985c2a528ff2e.tar.gz conf-f0ec1c16ab053f6b49e9c4b92e8985c2a528ff2e.zip |
tweak
-rwxr-xr-x | bin/fancy-prompt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/fancy-prompt b/bin/fancy-prompt index 36eebf5..1ce805d 100755 --- a/bin/fancy-prompt +++ b/bin/fancy-prompt @@ -141,7 +141,10 @@ my $errstr = color('error') . sprintf('%03d', $err); my $promptstr = color('user') . $prompt . color('reset'); my $full_length = int(($battery || 0) / 100 * $meter_length) + 1; -$full_length = 10 if $full_length > 10; +if ($full_length > 10) { + $full_length = 10; + $meter_end = $meter; +} my $battstr = wrap(($empty_meter x ($meter_length - $full_length)) . $meter_end . ($meter x ($full_length - 1)), '{}', |