mirror of
https://github.com/bertptrs/vimconfig.git
synced 2025-12-25 12:30:32 +01:00
Better paste.rs ergonomics
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user