mirror of https://github.com/Flinner/dots.git
feat(bin): 0x0 now echos url
This commit is contained in:
parent
e9797f8242
commit
47aff11c0a
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue