configs  Check-in [bcaeba8978]

Overview
Comment:zshrc: Add power_now function
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA3-256: bcaeba8978dcc32770b5ae5646cb6590f7e5d1373bf329d6771bd08551d20728
User & Date: js on 2021-09-23 22:19:50
Other Links: manifest | tags
Context
2021-09-23
22:19
zshrc: Add power_now function Leaf 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

Modified zshrc from [6e5594dce2] to [9f4f589aaf].

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