Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
8611aa80
Commit
8611aa80
authored
Feb 23, 2017
by
guyzmo
Committed by
Robby Russell
Feb 22, 2017
Browse files
Fixing battery prompt formatting issue (cf #5894) (#5895)
Signed-off-by:
Guyzmo
<
guyzmo+github+pub@m0g.net
>
parent
98d8d342
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/battery/battery.plugin.zsh
View file @
8611aa80
...
...
@@ -100,7 +100,7 @@ elif [[ "$OSTYPE" = linux* ]] ; then
else
color
=
'red'
fi
echo
"%{
$fg
[
$color
]%}
[
$(
battery_pct_remaining
)
%%
]
%{
$reset_color
%}"
echo
"%{
$fg
[
$color
]%}
$(
battery_pct_remaining
)
%%%{
$reset_color
%}"
else
echo
"∞"
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment