]> jfr.im git - yt-dlp.git/blobdiff - devscripts/zsh-completion.py
[lazy_extractors] Fix for search IEs
[yt-dlp.git] / devscripts / zsh-completion.py
index 60aaf76cc3297adc6e80984890e33e4267b95c2b..780df0de6cbbaee104ecb0340df3b1736a8f2fae 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 from __future__ import unicode_literals
 
 import os
@@ -6,9 +6,9 @@
 import sys
 
 sys.path.insert(0, dirn(dirn((os.path.abspath(__file__)))))
-import youtube_dl
+import yt_dlp
 
-ZSH_COMPLETION_FILE = "youtube-dl.zsh"
+ZSH_COMPLETION_FILE = "completions/zsh/_yt-dlp"
 ZSH_COMPLETION_TEMPLATE = "devscripts/zsh-completion.in"
 
 
@@ -45,5 +45,5 @@ def build_completion(opt_parser):
         f.write(template)
 
 
-parser = youtube_dl.parseOpts()[0]
+parser = yt_dlp.parseOpts()[0]
 build_completion(parser)