1
0
mirror of https://github.com/bertptrs/vimconfig.git synced 2025-12-25 20:40:32 +01:00

Better paste.rs ergonomics

This commit is contained in:
2024-05-14 12:13:35 +02:00
parent 4829a72892
commit 5dbac71442

View File

@@ -108,7 +108,9 @@ alias gci='gcloud compute instances'
# Not an alias but useful nonetheless. # Not an alias but useful nonetheless.
function pasters() { function pasters() {
local file=${1:-/dev/stdin} local file=${1:-/dev/stdin}
curl --data-binary @${file} https://paste.rs # Explicitly write the newline because paste.rs doesn't and sakura
# gets confused.
curl --write-out "\n" --data-binary @${file} https://paste.rs
} }
# Ensure we can make cheap copies on btrfs # Ensure we can make cheap copies on btrfs