nnn/plugins/pastebin

12 lines
206 B
Plaintext
Raw Normal View History

2019-03-24 15:03:27 +00:00
#!/usr/bin/env sh
2019-10-04 13:15:21 +00:00
# Description: Paste contents of a text a file http://ix.io
2019-03-24 15:03:27 +00:00
#
# Shell: POSIX compliant
# Author: Arun Prakash Jana
if ! [ -z "$1" ]; then
2019-10-04 13:15:21 +00:00
curl -F "f:1=@"$1"" ix.io
2019-03-24 15:03:27 +00:00
read input
fi