[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/02: gnu: youtube-dl: Add zsh completion.
From: |
guix-commits |
Subject: |
02/02: gnu: youtube-dl: Add zsh completion. |
Date: |
Mon, 23 Mar 2020 15:27:07 -0400 (EDT) |
mothacehe pushed a commit to branch master
in repository guix.
commit 7884fc434f5d4a11b1dd566553b83fae09c44fad
Author: Brice Waegeneire <address@hidden>
AuthorDate: Mon Mar 23 18:15:02 2020 +0100
gnu: youtube-dl: Add zsh completion.
* gnu/packages/video.scm (youtube-dl)[arguments]: Add phase
install-completion.
Signed-off-by: Mathieu Othacehe <address@hidden>
---
gnu/packages/video.scm | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 3b64c43..cb575a7 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -1673,6 +1673,15 @@ To load this plugin, specify the following option when
starting mpv:
(("'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"))