guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/03: gnu: bash-completion: Add support for guix home directories.


From: guix-commits
Subject: 02/03: gnu: bash-completion: Add support for guix home directories.
Date: Mon, 8 Aug 2022 11:32:12 -0400 (EDT)

efraim pushed a commit to branch core-updates
in repository guix.

commit 675c5c9bbd28e5e666903aa81efaec25b1573811
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Aug 7 22:42:19 2022 +0300

    gnu: bash-completion: Add support for guix home directories.
    
    * gnu/packages/patches/bash-completion-directories.patch: Adjust patch
    file to also search guix home directories for completion files.
---
 gnu/packages/patches/bash-completion-directories.patch | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/patches/bash-completion-directories.patch 
b/gnu/packages/patches/bash-completion-directories.patch
index 798f51154c..c8eb2424fd 100644
--- a/gnu/packages/patches/bash-completion-directories.patch
+++ b/gnu/packages/patches/bash-completion-directories.patch
@@ -4,13 +4,14 @@ up by the dynamic completion loader from there---whether they 
are
 part of bash-completion or installed by another package.
 
 On Guix systems, we want not only to search within bash-completion's own
-directory, but also in the user's profile and in the system profile.
+directory, but also in the user's profile and guix home profile, as well
+as in the system profile.
 This is what this patch does.
 
 
 --- a/bash_completion
 +++ b/bash_completion
-@@ -2173,7 +2173,13 @@ complete -F _minimal ''
+@@ -2173,7 +2173,15 @@ complete -F _minimal ''
  
  __load_completion()
  {
@@ -19,6 +20,8 @@ This is what this patch does.
 +        
${BASH_COMPLETION_USER_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/bash-completion}/completions
 +        "$HOME/.guix-profile/share/bash-completion/completions/$base"
 +        "$HOME/.guix-profile/etc/bash_completion.d/$base"
++        "$HOME/.guix-home/profile/share/bash-completion/completions/$base"
++        "$HOME/.guix-home/profile/etc/bash_completion.d/$base"
 +        "/run/current-system/profile/share/bash-completion/completions/$base"
 +        "/run/current-system/profile/etc/bash_completion.d/$base" )
 +



reply via email to

[Prev in Thread] Current Thread [Next in Thread]