From a483ea764e5eb6ed75f028b9536fa57ee0974bee Mon Sep 17 00:00:00 2001 From: blake Date: Mon, 31 Aug 2026 22:35:05 -0500 Subject: [PATCH] add yt-dlp zsh alias --- users/blake/dots/core/zsh/default.nix | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/users/blake/dots/core/zsh/default.nix b/users/blake/dots/core/zsh/default.nix index ebbbccf..69b5305 100644 --- a/users/blake/dots/core/zsh/default.nix +++ b/users/blake/dots/core/zsh/default.nix @@ -86,16 +86,6 @@ in { rebuild = "sh ${home_dir}/.nix/bin/rebuild"; perms = "sudo sh ${home_dir}/.nix/bin/fix-perms"; - # --- yt-dlp --- - yt-music = '' - yt-dlp \ - -f "bestaudio/best" \ - --embed-metadata \ - --embed-thumbnail \ - --convert-thumbnails jpg \ - -o "%(playlist_index)02d - %(title)s.%(ext)s" - ''; - # --- git --- status = "git status"; add = "git add"; @@ -111,6 +101,9 @@ in { # zfs dfzfs = "zfs list -r -o name,used,usedsnap,usedds"; + # --- yt-dlp --- + yt-music = "noglob yt-dlp -f 'bestaudio/best' --embed-metadata --embed-thumbnail --convert-thumbnails jpg -o '%(playlist_index)02d - %(title)s.%(ext)s'"; + # --- systemd --- stat = "sudo systemctl status"; restart = "sudo systemctl restart"; @@ -148,6 +141,17 @@ in { alias lf='lfcd' lfcd () {cd "$(command lf -print-last-dir "$@")"} + # --- yt-dlp --- + yt-music() { + yt-dlp \ + -f "bestaudio/best" \ + --embed-metadata \ + --embed-thumbnail \ + --convert-thumbnails jpg \ + -o "%(playlist_index)02d - %(title)s.%(ext)s" \ + "$@" + } + ''; syntaxHighlighting = {