diff options
| author | krolyxon <krolyxon@tutanota.com> | 2022-06-01 22:55:52 +0530 |
|---|---|---|
| committer | krolyxon <krolyxon@tutanota.com> | 2022-06-01 22:55:52 +0530 |
| commit | 723220028038a3c6e155259e28d07e867e2d45c9 (patch) | |
| tree | f07e13aaf23e820c6da71ec02466e5831502b0e2 /.local/bin/upfile | |
first commit
Diffstat (limited to '.local/bin/upfile')
| -rwxr-xr-x | .local/bin/upfile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.local/bin/upfile b/.local/bin/upfile new file mode 100755 index 0000000..4196dc5 --- /dev/null +++ b/.local/bin/upfile @@ -0,0 +1,12 @@ +#!/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 +notify-send "The url has been copied to your clipboard." |
