$ echo 'alias publish="curl -sF file=@- https://publish.ip1.cc"' >> ~/.bashrc
$ echo 'alias publish="curl -sF file=@- https://publish.ip1.cc"' >> ~/.zshrc
> alias publish "curl -sF file=@- https://publish.ip1.cc" --save
Then restart your shell or run source ~/.bashrc
$ alias publish="curl -sF file=@- https://publish.ip1.cc"
> alias publish "curl -sF file=@- https://publish.ip1.cc"
This alias will only last for the current terminal session.
$ ls -la | publish$ cat script.py | publish$ tail -100 /var/log/syslog | publish