]> jfr.im git - yt-dlp.git/blobdiff - devscripts/zsh-completion.in
[cleanup] Fix misc bugs (#8968)
[yt-dlp.git] / devscripts / zsh-completion.in
index b394a1ae7447797273cda4178de08b27ced26735..9117d339e03f4a153fef65cbe3d8c97a1eda5ec8 100644 (file)
@@ -1,6 +1,6 @@
-#compdef youtube-dl
+#compdef yt-dlp
 
-__youtube_dl() {
+__yt_dlp() {
     local curcontext="$curcontext" fileopts diropts cur prev
     typeset -A opt_args
     fileopts="{{fileopts}}"
@@ -16,6 +16,8 @@ __youtube_dl() {
                 _path_files
             elif [[ ${prev} =~ ${diropts} ]]; then
                 _path_files -/
+            elif [[ ${prev} == "--remux-video" ]]; then
+                _arguments '*: :(mp4 mkv)'
             elif [[ ${prev} == "--recode-video" ]]; then
                 _arguments '*: :(mp4 flv ogg webm mkv)'
             else
@@ -25,4 +27,4 @@ __youtube_dl() {
     esac
 }
 
-__youtube_dl
\ No newline at end of file
+__yt_dlp
\ No newline at end of file