diff --git a/users/modules/global/shells/zsh.nix b/users/modules/global/shells/zsh.nix index df61ca2..2fcb4e9 100644 --- a/users/modules/global/shells/zsh.nix +++ b/users/modules/global/shells/zsh.nix @@ -105,6 +105,19 @@ ffmpeg -i "$file" -vcodec copy -af "$filters" "$@" } + + disget() { + curl "$1" --output ''${$(basename "$1")%%\?*} + } + + disgetconv() { + url="$1" + tmpFileName="''${$(basename "$url")%%\?*}.XXX" + tmpFile=$(mktemp -t $tmpFileName) + curl "$url" --output "$tmpFile" + shift 1 + magick "$tmpFile" "$@" + } ''; dotDir = ".config/zsh";