From 5dbac71442a8ae922565b383776f06d80023ae8b Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Tue, 14 May 2024 12:13:35 +0200 Subject: [PATCH] Better paste.rs ergonomics --- zsh/.config/zsh/.zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index 7b10a85..78a3781 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -108,7 +108,9 @@ alias gci='gcloud compute instances' # Not an alias but useful nonetheless. function pasters() { 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