From 358479d4033664646e7c320fd23d94d38c652957 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Mon, 19 Feb 2024 13:42:53 +0200 Subject: emacs:(commands) Add 0x0-upload-file --- .emacs.d/modules/thanos-commands.el | 5 +++++ 1 file changed, 5 insertions(+) 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." -- cgit v1.2.3