commit ba3b877145dcb535a34ea5d7bcc27913c83026a2
parent 58100f9b21d12bedb08ff4ba00aa4f8a0f0affb8
Author: Dash Eclipse <dashezup@disroot.org>
Date: Thu, 3 Jun 2021 14:29:21 +0000
feat: add logpaste() to .zshrc.local
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/.zshrc.local b/.zshrc.local
@@ -170,6 +170,12 @@ tb() {
zmodload zsh/net/tcp; ztcp ezup.dev 9999; cat >&$REPLY; cat <&$REPLY | tee >(xclip -selection clipboard); ztcp -c $REPLY
}
+# logpaste.com
+logpaste() {
+ [ -s "$1" ] && { curl -F "_=@$@" http://logpaste.com; return 0; }
+ curl -F '_=<-' http://logpaste.com
+}
+
# gnuplot for lists of date in format of $(date +%F)
# sed -n 's/^: //p' ~/.zsh_history | cut -d: -f1 | xargs -L1 -I{} date +%F -d @{} | showplot
# xbps-query -m | xargs -L1 xbps-query -p install-date | awk '{print $1}' | showplot