From 7248253cdb147e7aa54dd3e9158190398e2cb72d Mon Sep 17 00:00:00 2001 From: Jan Jastrow Date: Tue, 15 Nov 2022 10:14:02 +0100 Subject: [PATCH] New alias for youtube-dl --- zsh/alias | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/zsh/alias b/zsh/alias index 1ffce7b..801e071 100644 --- a/zsh/alias +++ b/zsh/alias @@ -21,7 +21,7 @@ if [[ -x $(which lsd) ]]; then alias lsd='pwd; lsd -laF --group-dirs=first --icon=never' fi -# Update aliases +# Update tools/OS aliases if [[ -x $(which brew) ]]; then alias brewupdate='brew update; brew upgrade; brew upgrade --cask; brew cleanup' fi @@ -43,13 +43,16 @@ alias a2='aria2c -x4 -c -m3' # screen reconnect/init alias sc='screen -R' -# Only download mp4 version of youtube +# youtube-dl / yt-dlp if [[ -x $(which yt-dlp) ]]; then - alias ytmp4='yt-dlp -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4"' + alias ydl='yt-dlp' elif [[ -x $(which youtube-dl) ]]; then - alias ytmp4='youtube-dl -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4"' + alias ydl='youtube-dl' fi +# youtube-dl(p) - Download only best MP4 +alias ytmp4='ydl -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4"' + # rsync; archive, progress, partial, relative, humanreadable (add -z for compression) alias rrsync='rsync -avhP'