-
-
Save rook2pawn/1109083 to your computer and use it in GitHub Desktop.
bash prompt show remaining batt power and current time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS1="\$(acpi -b | perl -ne 'print \$1.\" \".+(join \":\",(localtime)[2,1]),\"> \" if /(\\\d{1,}%)/')" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment