Adds Android icon/battery plugin support

Plus fixes bhilburn/powerlevel9k#479, which was causing integer overflow on 32-bit CPUs
This commit is contained in:
guixxx 2017-04-12 16:38:43 -03:00 committed by Ben Hilburn
commit c403ad6cd7
3 changed files with 25 additions and 3 deletions

View file

@ -111,6 +111,15 @@ case $(uname) in
;;
esac
# Not all OSes support the '-o' parameter
# That's why this second condition is needed
case $(uname -o 2>/dev/null) in
Android)
OS='Android'
OS_ICON=$(print_icon 'ANDROID_ICON')
;;
esac
# Determine the correct sed parameter.
#
# `sed` is unfortunately not consistent across OSes when it comes to flags.