configs  Check-in [6276aeb66b]

Overview
Comment:zshrc: Add back sprunge

It seems to be back *and* support https now.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 6276aeb66b24414575e0257de2785aa5e4a173d157f9253d18b913cd1f47ab4f
User & Date: js 2024-03-11 21:53:00
Context
2024-03-31
20:57
zshrc: Use $USER instead of $(whoami) check-in: c86690c591 user: js tags: trunk
2024-03-11
21:53
zshrc: Add back sprunge check-in: 6276aeb66b user: js tags: trunk
2024-03-05
21:30
zshrc: Add no_hist_bang, map ^P and add gsshfs check-in: 33f7534131 user: js tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to zshrc.

418
419
420
421
422
423
424

425
426
427
428
429
430
431

		cryptopassphrase $@ | tr -d '\n' | $clipboard
	}
	alias pw="pwnk -k ~/.cryptopassphrase.key"
	alias pws="pwnk -k ~/.cryptopassphrase-server.key"
fi


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
	}







>







418
419
420
421
422
423
424
425
426
427
428
429
430
431
432

		cryptopassphrase $@ | tr -d '\n' | $clipboard
	}
	alias pw="pwnk -k ~/.cryptopassphrase.key"
	alias pws="pwnk -k ~/.cryptopassphrase-server.key"
fi

sprunge() { curl -F'sprunge=<-' https://sprunge.us }
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
	}