14 lines
283 B
Bash
Executable File
14 lines
283 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ -n "$1" ]; then
|
|
file=$1
|
|
else
|
|
file=$(find . -maxdepth 2 -type f | fzf)
|
|
fi
|
|
|
|
[ -z "$file" ] && exit
|
|
|
|
# curl -F"file=@$file" 0x0.st | xclip -sel c
|
|
curl -F"file=@$file" 0.vern.cc | xclip -sel c
|
|
notify-send "The url has been copied to your clipboard. $(xclip -sel c -o)"
|