From 102e57dddfb45620e70cfe272193e7d87008a466 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Wed, 4 Dec 2024 11:59:43 -0500 Subject: [PATCH] shells/zsh: add disgetconvv for video --- users/modules/global/shells/zsh.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/users/modules/global/shells/zsh.nix b/users/modules/global/shells/zsh.nix index 02e168a..52b3b18 100644 --- a/users/modules/global/shells/zsh.nix +++ b/users/modules/global/shells/zsh.nix @@ -119,6 +119,15 @@ shift 1 magick "$tmpFile" "$@" } + + disgetconvv() { + url="$1" + tmpFileName="''${$(basename "$url")%%\?*}.XXX" + tmpFile=$(mktemp -t $tmpFileName) + curl "$url" --output "$tmpFile" + shift 1 + ffmpeg -i "$tmpFile" "$@" + } ''; dotDir = ".config/zsh";