Overview
Comment: | zshrc: Add power_now function |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
bcaeba8978dcc32770b5ae5646cb6590 |
User & Date: | js 2021-09-23 22:19:50 |
Context
2021-10-28
| ||
18:05 | setup.sh: Improve checking for gpg key check-in: 4cecd9d228 user: js tags: trunk | |
2021-09-23
| ||
22:19 | zshrc: Add power_now function check-in: bcaeba8978 user: js tags: trunk | |
2021-09-14
| ||
18:17 | zshrc: flveri: Print the revision being verified check-in: d4ca24fd3f user: js tags: trunk | |
Changes
Changes to zshrc.
︙ | ︙ | |||
390 391 392 393 394 395 396 397 398 399 400 401 402 403 | } alias pw="pwnk -k ~/.cryptopassphrase.key" alias pws="pwnk -k ~/.cryptopassphrase-server.key" fi ixio() { curl -F 'f:1=<-' ix.io } 0x0st() { curl -F'file=@-' https://0x0.st } cross() { if [ $# = 0 ]; then echo 'Usage: cross platform [architecture1] [architecture2]' \ 1>&2 return 1 fi | > > > > > > > | 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 | } alias pw="pwnk -k ~/.cryptopassphrase.key" alias pws="pwnk -k ~/.cryptopassphrase-server.key" fi ixio() { curl -F 'f:1=<-' ix.io } 0x0st() { curl -F'file=@-' https://0x0.st } if [ -f /sys/class/power_supply/BAT0/power_now ]; then power_now() { awk '{ print $1*10^-6 " W" }' \ /sys/class/power_supply/BAT0/power_now } fi cross() { if [ $# = 0 ]; then echo 'Usage: cross platform [architecture1] [architecture2]' \ 1>&2 return 1 fi |
︙ | ︙ |