Share anything from your terminal. Instantly.

Install

bash
$ echo 'alias publish="curl -sF file=@- https://publish.ip1.cc"' >> ~/.bashrc
zsh
$ echo 'alias publish="curl -sF file=@- https://publish.ip1.cc"' >> ~/.zshrc
fish
> alias publish "curl -sF file=@- https://publish.ip1.cc" --save

Then restart your shell or run source ~/.bashrc

Enable temporarily (use without installing)

bash / zsh
$ alias publish="curl -sF file=@- https://publish.ip1.cc"
fish
> alias publish "curl -sF file=@- https://publish.ip1.cc"

This alias will only last for the current terminal session.

Usage

# Pipe any command output
$ ls -la | publish
https://publish.ip1.cc/public/a1b2c3d4.txt
# Share a file
$ cat script.py | publish
https://publish.ip1.cc/public/e5f6g7h8.txt
# Share logs, errors, configs...
$ tail -100 /var/log/syslog | publish
https://publish.ip1.cc/public/i9j0k1l2.txt