diff options
author | Marius Bakke <mbakke@fastmail.com> | 2017-01-17 16:15:13 +0100 |
---|---|---|
committer | Marius Bakke <mbakke@fastmail.com> | 2017-01-17 16:18:35 +0100 |
commit | 718c12786b3df914594a7b225e661a071f06c908 (patch) | |
tree | 02bab200e2a3fbb2a77abf15338f1c76d862e674 /gnu/packages/password-utils.scm | |
parent | c554c6bab878b32f476aaf89c08e22d5b3c1cb56 (diff) | |
download | patches-718c12786b3df914594a7b225e661a071f06c908.tar patches-718c12786b3df914594a7b225e661a071f06c908.tar.gz |
gnu: password-store: Install bash completions.
* gnu/packages/password-utils.scm (password-store)[arguments]: Add
'install-shell-completions' phase.
Diffstat (limited to 'gnu/packages/password-utils.scm')
-rw-r--r-- | gnu/packages/password-utils.scm | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm index cb8dacc3ea..feb6848e09 100644 --- a/gnu/packages/password-utils.scm +++ b/gnu/packages/password-utils.scm @@ -294,7 +294,17 @@ any X11 window.") '("coreutils" "getopt" "git" "gnupg" "pwgen" "sed" "tree" "which" "xclip")))) (wrap-program (string-append out "/bin/pass") - `("PATH" ":" prefix (,(string-join path ":")))))))) + `("PATH" ":" prefix (,(string-join path ":")))) + #t))) + (add-after 'wrap-path 'install-shell-completions + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bashcomp (string-append out "/etc/bash_completion.d"))) + ;; TODO: install fish and zsh completions. + (mkdir-p bashcomp) + (copy-file "src/completion/pass.bash-completion" + (string-append bashcomp "/pass")) + #t)))) #:make-flags (list "CC=gcc" (string-append "PREFIX=" %output)) ;; Parallel tests may cause a race condition leading to a ;; timeout in some circumstances. |