summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.emacs.d/modules/thanos-commands.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/.emacs.d/modules/thanos-commands.el b/.emacs.d/modules/thanos-commands.el
index c7c980b..f4220c3 100644
--- a/.emacs.d/modules/thanos-commands.el
+++ b/.emacs.d/modules/thanos-commands.el
@@ -187,6 +187,11 @@
(revert-buffer)
(message "Renamed %s to %s" file new-file)))))
+(defun thanos/0x0-upload-file ()
+ "Update file to 0x0.st"
+ (interactive)
+ (async-shell-command (format "curl -F'file=@%s' https://0x0.st" (dired-get-filename))))
+
;; yeetube
(defun yeetube-download-videos-ffmpeg ()
"Download videos using ffmpeg."