Add upload function

This commit is contained in:
2015-05-15 11:41:46 +02:00
parent 1ca1a66ffd
commit 0eafd60bc1

4
.rc
View File

@@ -245,4 +245,8 @@ case $- in
;;
esac
upload() {
echo http://bin.dget.cc/$(curl -X POST --data-binary @"$1" http://bin.dget.cc/ | tail -3 | head -1 | cut -d'"' -f2)
}
# vim: ft=sh