From 55c111d59ce0ee9ddc8297af709a2ff122704895 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Mon, 15 Jul 2019 23:13:19 -0400 Subject: Add up -t --- bin/up.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'bin/up.sh') diff --git a/bin/up.sh b/bin/up.sh index ef3ff6c7..a439c8f7 100644 --- a/bin/up.sh +++ b/bin/up.sh @@ -45,13 +45,27 @@ uploadScreen() { upload "${temp}/capture.png" } -args=$(setopt 'chs' "$@") +uploadTerminal() { + temp + cat > "${temp}/term.html" <<-EOF + + ${1} + + EOF + ptee "$@" | shotty -Bcs >> "${temp}/term.html" + upload "${temp}/term.html" +} + +args=$(setopt 'chst' "$@") eval set -- "$args" for opt; do case "$opt" in (-c) shift; fn=uploadCommand;; (-h) shift; fn=uploadHi;; (-s) shift; fn=uploadScreen;; + (-t) shift; fn=uploadTerminal;; (--) shift; break;; esac done -- cgit 1.4.1