Krolyxon
Auto
Light
Dark
Summary
Tree
Log
Refs
Find
Commit
ccb647a
Branches
master
Refs →
dotfiles-x11
/
.local
/
bin
/
upfile
12 lines · 236 B · Bourne Again Shell (bash)
Raw
Blame
History
Download
1
#!/bin/sh
2
3
if
[
-
n
"$1"
]
;
then
4
file
=$1
5
else
6
file
=$(find . -maxdepth 2 -type f | fzf)
7
fi
8
9
[
-
z
"$file"
]
&&
exit
10
11
curl
-
F
"file=@$file"
0x0.st
|
xclip
-
sel c
12
notify-send
"The url has been copied to your clipboard. $(xclip -sel c -o)"