fish: init

This commit is contained in:
Nico 2025-06-21 20:10:57 +10:00
parent eda1f4129c
commit 69ceb5dcc5
14 changed files with 171 additions and 1 deletions

View file

@ -0,0 +1,9 @@
function 0x0 --description 'Uploads a file or folder to 0x0.st'
if test -d "$argv"
set TMPFILE "$(mktemp --suffix '.tar')"
tar cf "$TMPFILE" "$argv"
curl -F file="@$TMPFILE" -F expires=24 https://0x0.st
else
curl -F file=@"$argv" -F expires=24 https://0x0.st
end
end