From c62f741a902d379bb55bf1869dab342517f3a202 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 28 Aug 2024 13:00:36 +0100 Subject: [PATCH] Add a default directory when using `yt-dlp` Always place downloaded videos in `~/Videos`. --- lib/shared/modules/zsh.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/shared/modules/zsh.nix b/lib/shared/modules/zsh.nix index 22ffc3e8..40236a25 100644 --- a/lib/shared/modules/zsh.nix +++ b/lib/shared/modules/zsh.nix @@ -48,6 +48,10 @@ command ${pkgs.ttyper}/bin/ttyper --language english1000 --words 50 "''${@}" } + yt-dlp() { + command yt-dlp --paths ~/Videos "$@" + } + # Case insensitive autocompletion. zstyle ":completion:*" matcher-list "" "m:{a-zA-Z}={A-Za-z}" "r:|=*" "l:|=* r:|=*" autoload -Uz compinit && compinit