[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#40060] [PATCH 2/2] gnu: youtube-dl: Add zsh completion
From: |
Brice Waegeneire |
Subject: |
[bug#40060] [PATCH 2/2] gnu: youtube-dl: Add zsh completion |
Date: |
Sat, 14 Mar 2020 15:42:21 +0100 |
* gnu/packages/video.scm (youtube-dl)[arguments]: Add phase
install-completion.
---
gnu/packages/video.scm | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 4ca037532f..38f376c7e4 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -1582,6 +1582,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"))
--
2.25.0
[bug#40060] [PATCH 2/2] gnu: youtube-dl: Add zsh completion,
Brice Waegeneire <=
[bug#40060] [PATCH v2 0/2] youtube-dl add ffmpeg and zsh-completion, Brice Waegeneire, 2020/03/23