gnu: youtube-dl: Add zsh completion.
* gnu/packages/video.scm (youtube-dl)[arguments]: Add phase install-completion. Signed-off-by: Mathieu Othacehe <m.othacehe@gmail.com>
This commit is contained in:
parent
4233e74b39
commit
7884fc434f
|
@ -1673,6 +1673,15 @@ (define-public youtube-dl
|
|||
(("'share/")
|
||||
(string-append "'" prefix "/share/")))
|
||||
#t)))
|
||||
(add-after 'install 'install-completion
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(zsh (string-append out
|
||||
"/share/zsh/site-functions")))
|
||||
(mkdir-p zsh)
|
||||
(copy-file "youtube-dl.zsh"
|
||||
(string-append zsh "/_youtube-dl"))
|
||||
#t)))
|
||||
(add-after 'install 'wrap-executable
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(let ((out (assoc-ref outputs "out"))
|
||||
|
|
Loading…
Reference in a new issue