summaryrefslogtreecommitdiff
path: root/bin/pastebin
diff options
context:
space:
mode:
authorSam Nystrom <sam@samnystrom.dev>2024-10-15 13:29:10 -0400
committerSam Nystrom <sam@samnystrom.dev>2024-10-15 13:29:10 -0400
commit2c98bbacc8db3b251e1679f9da84cf1f5ed5726a (patch)
tree10d44c9b82d275d66d880ff8ec33992cddda12b5 /bin/pastebin
parentc8c79e6c6a5c4bb1e0ba44f309ce5ae612f97e1c (diff)
update ~/bin
Diffstat (limited to 'bin/pastebin')
-rwxr-xr-xbin/pastebin5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/pastebin b/bin/pastebin
index 46be94a..87d26cf 100755
--- a/bin/pastebin
+++ b/bin/pastebin
@@ -14,7 +14,7 @@ while getopts e:h opt; do
cat <<-EOF
Usage: ${0##*/} [-e EXPIRES] [FILE]
-Upload FILE (or stdin) to 0x0.st and print the URL
+Upload FILE (or stdin) to envs.sh and print the URL
-e EXPIRES Set the expiration time, either hours or epoch milliseconds
EOF
@@ -34,7 +34,6 @@ fi
file="${1:-/dev/stdin}"
[ "$file" = '-' ] && file="/dev/stdin"
-url="$(curl -fsS -F file=@"$file" ${expires:+-F expires="$expires"} https://0x0.st)"
+url="$(curl -fsS -F file=@"$file" ${expires:+-F expires="$expires"} https://envs.sh)"
printf '%s\n' "$url"
wl-copy "$url"
-xdg-open "$url"