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
Oh My Zsh
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
Hide whitespace changes
Inline
Side-by-side
plugins/battery/battery.plugin.zsh
View file @
8611aa80
...
@@ -100,7 +100,7 @@ elif [[ "$OSTYPE" = linux* ]] ; then
...
@@ -100,7 +100,7 @@ elif [[ "$OSTYPE" = linux* ]] ; then
else
else
color
=
'red'
color
=
'red'
fi
fi
echo
"%{
$fg
[
$color
]%}
[
$(
battery_pct_remaining
)
%%
]
%{
$reset_color
%}"
echo
"%{
$fg
[
$color
]%}
$(
battery_pct_remaining
)
%%%{
$reset_color
%}"
else
else
echo
"∞"
echo
"∞"
fi
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