xta / HalloweenBash

Custom Bash Profile Generator
http://xta.github.io/HalloweenBash/
333 stars 32 forks source link

Core Temperature -> Linux / Mac #23

Open marceloboeira opened 10 years ago

marceloboeira commented 10 years ago

Look:

image

I'm using "acpi" for ubuntu: Check here

temperature () { acpi -t | grep -Eo '[0-9]+.{2,4}'| awk '{print $1}' | head -2 | tail -1; }
xta commented 10 years ago

Hey, thanks for another great suggestion. Core Temperature could possibly be implemented similar to the git branch parsing. See how it works here.

If I get a pull request that conforms to the existing HalloweenBash implementation, I'll consider it for inclusion. Cheers :)

marceloboeira commented 10 years ago

@xta I'll try, but I can only test on ubuntu ... :)