Fix paste timeout

This commit is contained in:
Austen Adler 2016-05-22 22:02:04 -04:00
parent 0849fd0f06
commit 121b39e854

View File

@ -182,7 +182,7 @@ paste() {
if [[ ! -z "$1" ]]; then
NAME="-d title=$1"
fi
sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[mGK]//g" | curl --data-urlencode text@- $NAME -d name=$USER https://austenwares.com/paste/api/create
sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[mGK]//g" | curl --data-urlencode text@- $NAME -d name=$USER -d expire="40320" https://austenwares.com/paste/api/create
}
grename() {
echo incomplete