NAME
up —
upload file
SYNOPSIS
up |
[-c | -h |
-s | -t]
[-w warn]
[file | command] |
DESCRIPTION
up uploads a file to temp.causal.agency
with scp(1). If no
file is provided, standard input is read and uploaded
as text.
The destination file name is chosen using
date(1) and
openssl(1)
rand. The URL of the uploaded file is printed and
copied to the pasteboard with pbcopy(1) if available.
The arguments are as follows:
-c- Run a command to produce a text file for upload.
-h- Use hilex(1) to produce an HTML file for upload.
-s- Use screencapture(1) or scrot(1) to produce a PNG file for upload. The file is optimized by pngo(1).
-t- Run a command with ptee(1) and shotty(1) to produce an HTML file for upload.
-wwarn- Create an HTML redirect with warn in its title.
Any arguments after ‘--’ are
passed to hilex(1) and
screencapture(1) or
scrot(1), respectively.