diff options
author | Thanos Apollo <[email protected]> | 2024-02-19 13:42:53 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-02-19 13:42:53 +0200 |
commit | 358479d4033664646e7c320fd23d94d38c652957 (patch) | |
tree | f5855cafe2b92108861d0d090fc7ce73c9799f82 /.emacs.d | |
parent | 527697672e653c530fe3d9962885faca597dacc1 (diff) |
emacs:(commands) Add 0x0-upload-file
Diffstat (limited to '.emacs.d')
-rw-r--r-- | .emacs.d/modules/thanos-commands.el | 5 |
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." |