forked from nico/dots
fish: init
This commit is contained in:
parent
eda1f4129c
commit
69ceb5dcc5
14 changed files with 171 additions and 1 deletions
9
stow/.config/fish/functions/0x0.fish
Normal file
9
stow/.config/fish/functions/0x0.fish
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue