feat(bin): 0x0 now echos url

This commit is contained in:
Flinner Yuu 2022-04-11 22:35:42 +03:00
parent e9797f8242
commit 47aff11c0a
Signed by: flinner
GPG Key ID: 95CE0DA7F0E58CA6
1 changed files with 3 additions and 1 deletions

View File

@ -158,7 +158,9 @@ ip.me () { curl eth0.me ; curl ipv6.icanhazip.com } # or ip.me
[ ! -z "$1" ] && file=$1 || file=$(find . -maxdepth 2 -type f | fzf) [ ! -z "$1" ] && file=$1 || file=$(find . -maxdepth 2 -type f | fzf)
[ -z "$file" ] && return [ -z "$file" ] && return
echo "file=@$file" echo "file=@$file"
curl -F "file=@$file" 0x0.st | xclip -sel clip _URL=$(curl -F "file=@$file" 0x0.st)
echo "$_URL" | xclip -sel clip
echo "$_URL"
} }
# curl with cache # curl with cache