Merge pull request #979 from lfelipe1501/master

Update ATOMIC Theme
pull/980/head
Nils Winkler 2017-06-16 08:11:37 +02:00 committed by GitHub
commit 64abb6476f
2 changed files with 13 additions and 4 deletions

View File

@ -1,6 +1,6 @@
# Atomic theme
Simple colorful terminal prompt theme (inspired by a number of themes and it is based mainly on the theme of @MunifTanjim [`brainy`](themes/brainy/README.md)).
The Best ColorFull terminal prompt theme inspired by a number of themes and based on the theme of @MunifTanjim [`brainy`](../brainy/README.md).
Supported on all operating systems.
@ -155,6 +155,15 @@ Three environment variables can be defined to rearrange the segments order. The
`___ATOMIC_TOP_LEFT="user_info dir scm"`
`___ATOMIC_TOP_RIGHT="python ruby todo clock battery"`
`___ATOMIC_TOP_RIGHT="exitcode python ruby todo clock battery"`
`___ATOMIC_BOTTOM="exitcode char"`
`___ATOMIC_BOTTOM="char"`
## Follow me
I'm on the social media.
* [@lfelipe1501](https://twitter.com/lfelipe1501) on Twitter.
* [Luis Felipe](https://www.facebook.com/lfelipe1501) on Facebook.
This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.

View File

@ -178,7 +178,7 @@ ___atomic_prompt_battery() {
ac_adapter_disconnected && info="-"
ac_adapter_connected && info="+"
info+=$batp
[ "$info" == "+100" ] && info="AC"
[ "$batp" -eq 100 ] || [ "$batp" -gt 100 ] && info="AC"
printf "%s|%s|%s|%s" "${color}" "${info}" "${bold_white}" "${box}"
}