From unknown Sun Jul 13 20:18:55 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#57498 <57498@debbugs.gnu.org> To: bug#57498 <57498@debbugs.gnu.org> Subject: Status: bash-completion completion functions not loaded when using guix home Reply-To: bug#57498 <57498@debbugs.gnu.org> Date: Mon, 14 Jul 2025 03:18:55 +0000 retitle 57498 bash-completion completion functions not loaded when using gu= ix home reassign 57498 guix submitter 57498 Maze severity 57498 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 31 03:35:23 2022 Received: (at submit) by debbugs.gnu.org; 31 Aug 2022 07:35:24 +0000 Received: from localhost ([127.0.0.1]:38095 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTIFv-0003Tt-Hu for submit@debbugs.gnu.org; Wed, 31 Aug 2022 03:35:23 -0400 Received: from lists.gnu.org ([209.51.188.17]:46584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTIFq-0003Tj-KJ for submit@debbugs.gnu.org; Wed, 31 Aug 2022 03:35:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39680) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTIFq-0002BC-FL for bug-guix@gnu.org; Wed, 31 Aug 2022 03:35:18 -0400 Received: from mx1.polytechnique.org ([129.104.30.34]:47896) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTIFn-0006Jy-91 for bug-guix@gnu.org; Wed, 31 Aug 2022 03:35:17 -0400 Received: from ubik (unknown [199.167.29.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id EC24E5648F9 for ; Wed, 31 Aug 2022 09:35:08 +0200 (CEST) Received: from maze by ubik with local (Exim 4.95) (envelope-from ) id 1oTIFa-0007Mi-PJ for bug-guix@gnu.org; Wed, 31 Aug 2022 15:35:02 +0800 Date: Wed, 31 Aug 2022 15:35:02 +0800 From: Maze To: bug-guix@gnu.org Subject: bash-completion completion functions not loaded when using guix home Message-ID: <20220831073502.ru6dye2wbgc6vrbu@ubik.pkbd.org> X-PGP-Key: http://data.pkbd.org/pgp/maze/pubkey.asc MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-AV-Checked: ClamAV using ClamSMTP at svoboda.polytechnique.org (Wed Aug 31 09:35:09 2022 +0200 (CEST)) X-Spam-Flag: No, tests=bogofilter, spamicity=0.199296, queueID=8CE835648FA Received-SPF: pass client-ip=129.104.30.34; envelope-from=SRS0=WkIY=ZD=ubik.pkbd.org=maze@bounces.m4x.org; helo=mx1.polytechnique.org X-Spam_score_int: -39 X-Spam_score: -4.0 X-Spam_bar: ---- X-Spam_report: (-4.0 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) I don't install bash-completion into my system profile and I use only guix home to install user packages. I typically don't guix install any packages. While I do include the bash-completion package in my home configuration file, the completion bash functions do not get loaded as needed, the resulting user experience is as if bash-completion wasn't installed, although .bashrc is edited in the typical way to load the main file bash_completion. But, the shell code in bash_completion cannot find and load the individual files containing the completion functions for individual commands. The reason is that I don't have a ~/.guix-profile folder, my current user profile is linked in ~/.guix-home/profile. The relevant path (in my case) is not included in the search path for completion bash functions. In guix this completion functions search path is defined by the patch found at gnu/packages/patches/bash-completion-directories.patch, where you can see the path to the guix home user profile is missing. The patch below is a patch to the patch file I mention above from the guix dource tree. It just adds 2 folders to the search path. I verified that it works for me. --- bash-completion: fix loading of completion functions with guix home * gnu/packages/patches/bash-completion-directories.patch: modified --- gnu/packages/patches/bash-completion-directories.patch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/packages/patches/bash-completion-directories.patch b/gnu/packages/patches/bash-completion-directories.patch index 021e34653b..3c6b3082ea 100644 --- a/gnu/packages/patches/bash-completion-directories.patch +++ b/gnu/packages/patches/bash-completion-directories.patch @@ -10,7 +10,7 @@ This is what this patch does. --- a/bash_completion +++ b/bash_completion -@@ -2016,7 +2016,13 @@ complete -F _minimal '' +@@ -2016,7 +2016,15 @@ complete -F _minimal '' __load_completion() { @@ -19,6 +19,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" ) + base-commit: 47c11772dfe840a536ed7ec438fe832878f51054 -- 2.36.1 From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 31 07:56:11 2022 Received: (at 57498) by debbugs.gnu.org; 31 Aug 2022 11:56:12 +0000 Received: from localhost ([127.0.0.1]:38434 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTMKJ-0006Xm-GK for submit@debbugs.gnu.org; Wed, 31 Aug 2022 07:56:11 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:35231) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTMKF-0006XJ-7V for 57498@debbugs.gnu.org; Wed, 31 Aug 2022 07:56:09 -0400 Received: (Authenticated sender: andrew@trop.in) by mail.gandi.net (Postfix) with ESMTPSA id 20CFC1C0007; Wed, 31 Aug 2022 11:55:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop.in; s=gm1; t=1661946961; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=fagwEE0KyyGNZJ3i2d/aajAJN1X/f1wqMBB1kuAzLB0=; b=FTPrA5kN1AHkcUCeZuGHDBZ7rp9ABbqUNPpFI70+GBwAUhdcvNmG4vQsvqS5kxbXYd4BES vWyGdbbtftj2QUrIry0gY50r7oaz7itbtyGsgOV2JrBDPnonbondAVbTHJIsfEw80oy55j k5EzIe2QHY1ESNQUW2HX+o8Ejb9jvzeYi0mNx2udbgEDa0cnuEyh2/d+gwD2wUXkGIm8Ce 0B2zNHHn7FPDdxLeUadXIrWZIHYk1lQWNYqbreMb9w73vwV3qVcbscxKCYNuDlQGK42kWh 8b2g3rr+ZIAXRPcFAcbZH3S8d/+fYGGAvwrAiXYkWw7NbMJkGNzgmwtNWd1kgQ== From: Andrew Tropin To: Maze , 57498@debbugs.gnu.org Subject: Re: bug#57498: bash-completion completion functions not loaded when using guix home In-Reply-To: <20220831073502.ru6dye2wbgc6vrbu@ubik.pkbd.org> References: <20220831073502.ru6dye2wbgc6vrbu@ubik.pkbd.org> Date: Wed, 31 Aug 2022 14:55:54 +0300 Message-ID: <87wnaok4ol.fsf@trop.in> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 57498 Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= , Tobias Geerinckx-Rice , Efraim Flashner X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On 2022-08-31 15:35, maze@pkbd.org wrote: > I don't install bash-completion into my system profile and I use only > guix home to install user packages. I typically don't guix install any > packages. > > While I do include the bash-completion package in my home configuration > file, the completion bash functions do not get loaded as needed, the > resulting user experience is as if bash-completion wasn't installed, > although .bashrc is edited in the typical way to load the main file > bash_completion. But, the shell code in bash_completion cannot find and > load the individual files containing the completion functions for > individual commands. > > The reason is that I don't have a ~/.guix-profile folder, my current > user profile is linked in ~/.guix-home/profile. The relevant path (in > my case) is not included in the search path for completion bash functions. > > In guix this completion functions search path is defined by the patch fou= nd at > gnu/packages/patches/bash-completion-directories.patch, where you can > see the path to the guix home user profile is missing. > > The patch below is a patch to the patch file I mention above from the > guix dource tree. It just adds 2 folders to the search path.=20 > > I verified that it works for me. Hi Maze! That's right, the similiar fix is already applied on core-updates branch 675c5c9bbd28e5e666903aa81efaec25b1573811, unfortunately bash-completion package update affects a lot of packages that's why it's not on master branch yet. Thank you for the patch, anyway! For now, while 1.4 is not released yet, as a temporary fix I can suggest to install the package providing bash-completion to ~/.guix-profile or system profile. There are other workarounds, but this one seems to be the easiest. > > --- > bash-completion: fix loading of completion functions with guix home > > * gnu/packages/patches/bash-completion-directories.patch: modified > --- > gnu/packages/patches/bash-completion-directories.patch | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/gnu/packages/patches/bash-completion-directories.patch b/gnu= /packages/patches/bash-completion-directories.patch > index 021e34653b..3c6b3082ea 100644 > --- a/gnu/packages/patches/bash-completion-directories.patch > +++ b/gnu/packages/patches/bash-completion-directories.patch > @@ -10,7 +10,7 @@ This is what this patch does. >=20=20 > --- a/bash_completion > +++ b/bash_completion > -@@ -2016,7 +2016,13 @@ complete -F _minimal '' > +@@ -2016,7 +2016,15 @@ complete -F _minimal '' >=20=20=20 > __load_completion() > { > @@ -19,6 +19,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" It seems $base not needed anymore, it's a rudiment from an old version of the patch. I'll remove it. > + "$HOME/.guix-profile/etc/bash_completion.d/$base" > ++ "$HOME/.guix-home/profile/share/bash-completion/completions/$ba= se" > ++ "$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" ) > + > > base-commit: 47c11772dfe840a536ed7ec438fe832878f51054 =2D-=20 Best regards, Andrew Tropin --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmMPTEoACgkQIgjSCVjB 3rBNqQ//c3g0a0B4/IH8fNideDyAbiFA2OciLUOjPU1ipMRzrRQKRidO7TixBAnz 8ayrFhsbQ8dnYlcoXo2R1Uj5ACT9VF7xqKMw98JwOmfQnm0t9eME/fOVyvS+2ujx oLtngqoJs/jp7EdyfHJI0Kk9GrepoFFY5rFuZ5LWSar7mvWopqZzRsNQF18Ryw3R csQN4YeWc/qUXVau+ZGtJj26Rr9NcblAqSU/rLydugMyiV81WEXS5wO03fjmYpZC XiESa1wOEmqil9Sdjzwdn5VcgKL4Otfo8cF/uLN/ROUtrTWigiaFdhN9aQv7dudO 2WUgPBquXNO/k08BH35a3GJudryZdni8dSFH1SnNjsTLbYW7QYH8yiikiumpS8K0 YVvw5zjmpWd1Z8b5t+Hd7/xGw011msX4P6cHSoClvDEYZ+BC5/Ocdtrm7BooSlXP ObX4FX2PGazIh1096XiY/JdV4mqK6uVg9Ls2LWmN7ysl+dJv466wqFcHIgQ3GWIa tdnhPac9Bv2tkH7Px5ySPrEZNAIO1YP70ABXx2kNAcgjXXyRBJIqFke3l1cDO3yQ 8rJ6mCS3KVe/2DRqQCcSmu7WfdyNnQbxOnvjgDPnO+Gs+hD44O48xE08odHGT8R9 tTgo4vKAv08jv4nML7Am3YG9qdRedOGY5yERPn/XWQR/FUTpl/g= =eE/9 -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 31 07:58:40 2022 Received: (at control) by debbugs.gnu.org; 31 Aug 2022 11:58:40 +0000 Received: from localhost ([127.0.0.1]:38438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTMMi-0006b6-5G for submit@debbugs.gnu.org; Wed, 31 Aug 2022 07:58:40 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:40943) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTMMd-0006aq-I6 for control@debbugs.gnu.org; Wed, 31 Aug 2022 07:58:39 -0400 Received: (Authenticated sender: andrew@trop.in) by mail.gandi.net (Postfix) with ESMTPSA id 356DFFF80D for ; Wed, 31 Aug 2022 11:58:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop.in; s=gm1; t=1661947109; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=zjuorXbSp7jpnjLJG8YctwHG1uU8g1VhkEuQHoxpXEM=; b=UecfC5ZslNVgkNw7bLTdFZtbMB4yxqq6zt8mo8ji014Bsm139YYbUqpv8s7DW33wfHZfE5 Rgihc/iinZb5u6g8guLOtuYnieF7wMi560HsBe8Z0aSIVJfaTyo6iNbxht1uPDabf3xl0R 2h3qyygNMGRdlBkqFGGRRT4oZMNAibNSmFZGUe88S8Ms/7Q2FCoe8toOtpGXLmptF3KVTu maf1AQX8L9uoxCeZBSG55FFrOdSxfPGrnFsVE6iY54/3VujQWT3F5RTlQHbG0DMzfHNXIy v0EOEBuzF8dMU1HtsxWWSw6kOIyDSp9HZO4uq3TF9Z9XGiCzv37pZ/oOwl6hpg== From: Andrew Tropin To: control@debbugs.gnu.org Subject: Already fixed on core-updates Date: Wed, 31 Aug 2022 14:58:23 +0300 Message-ID: <87tu5sk4kg.fsf@trop.in> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain close 57498 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmMPTN8ACgkQIgjSCVjB 3rDvxw/6AmwjKVR7HZXu9BXsHtjVa/ar5CUGb8fkcW3OUd7IM35EXlfkdgZOt2LG N2Mu1sk5lDx+WfLnNE5QrfnrWXuSOTwxMCFmrKNUmPg9JGxkj0R7lCvhgym9AwOy vqoDTjwy9sjbYIlZMdLXPHYnPUXjr9D5HXpIhcGz3r+2Jj+RMNzR3uLurQipFbmr V4+RNoD+fPGEN5s9yThoe3iuVGMx7tGMdf8tRbpeqR1q/85Uo5ZQGUHEMbBIp6Nq RBfnqRLU+dUQ/03+7PeBuKPTb2ZuIC58U1Z1ln5WUMQ2RPxrGmvzXrRQqtYjZf7l dJfdfKaTB2dr7Sl/iz0rhPHpnfbPXJehPr9YE5szwSCFb77PaOjiovK9v2QIXbpI y9m7BaCbNn/9FDei5aCMNGsk77/J8znQPWxIQcjBhof83AhNpp+BfACGmZPe+SCD yo31+8jug/T0zT5kTpEzLgp61nsJIuCvn07rGBDKrZUikwKBrPLTkE7UDEZMiB7V e+CFrfFubAznaSvsezp8A0u5T3X6xNf1ooYfN1MgRae3IeURL1yWMmwl98msHp7Z U/bNIqnOgkmn4fnxW5IbElP4/6zwj2prT4gsX6JAcUcbCNoLBbQh9hKXErFVeUAo EpVSb80ClTDRK+vp3qA/sYvISadCjEImOp8/ZMrlfymzoRXLSmg= =fc3M -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 31 08:21:36 2022 Received: (at 57498) by debbugs.gnu.org; 31 Aug 2022 12:21:36 +0000 Received: from localhost ([127.0.0.1]:38460 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTMiu-0000t9-4R for submit@debbugs.gnu.org; Wed, 31 Aug 2022 08:21:36 -0400 Received: from mx1.polytechnique.org ([129.104.30.34]:58572) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTMip-0000sy-N2 for 57498@debbugs.gnu.org; Wed, 31 Aug 2022 08:21:34 -0400 Received: from ubik (unknown [199.167.29.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id 5A466564673; Wed, 31 Aug 2022 14:21:29 +0200 (CEST) Received: from maze by ubik with local (Exim 4.95) (envelope-from ) id 1oTMig-000426-QF; Wed, 31 Aug 2022 20:21:22 +0800 Date: Wed, 31 Aug 2022 20:21:22 +0800 From: Maze To: Andrew Tropin Subject: Re: bug#57498: bash-completion completion functions not loaded when using guix home Message-ID: <20220831122122.wsyvyxm56tdt7zkm@ubik.pkbd.org> X-PGP-Key: http://data.pkbd.org/pgp/maze/pubkey.asc References: <20220831073502.ru6dye2wbgc6vrbu@ubik.pkbd.org> <87wnaok4ol.fsf@trop.in> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87wnaok4ol.fsf@trop.in> X-AV-Checked: ClamAV using ClamSMTP at svoboda.polytechnique.org (Wed Aug 31 14:21:30 2022 +0200 (CEST)) X-Spam-Flag: No, tests=bogofilter, spamicity=0.012476, queueID=34CB7564676 X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 57498 Cc: 57498@debbugs.gnu.org, Ludovic =?utf-8?Q?Court=C3=A8s?= , Tobias Geerinckx-Rice , Efraim Flashner X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.1 (---) Thanks for the information and right, it is easy to workaround once figured out. Next time I find a little thing of this sort I'll be sure to check on the core-updates branch. On Wednesday 31 August 2022 at 02:55:54PM, Andrew Tropin has written: > On 2022-08-31 15:35, maze@pkbd.org wrote: > > > I don't install bash-completion into my system profile and I use only > > guix home to install user packages. I typically don't guix install any > > packages. > > > > While I do include the bash-completion package in my home configuration > > file, the completion bash functions do not get loaded as needed, the > > resulting user experience is as if bash-completion wasn't installed, > > although .bashrc is edited in the typical way to load the main file > > bash_completion. But, the shell code in bash_completion cannot find and > > load the individual files containing the completion functions for > > individual commands. > > > > The reason is that I don't have a ~/.guix-profile folder, my current > > user profile is linked in ~/.guix-home/profile. The relevant path (in > > my case) is not included in the search path for completion bash functions. > > > > In guix this completion functions search path is defined by the patch found at > > gnu/packages/patches/bash-completion-directories.patch, where you can > > see the path to the guix home user profile is missing. > > > > The patch below is a patch to the patch file I mention above from the > > guix dource tree. It just adds 2 folders to the search path. > > > > I verified that it works for me. > > Hi Maze! > > That's right, the similiar fix is already applied on core-updates branch > 675c5c9bbd28e5e666903aa81efaec25b1573811, unfortunately bash-completion > package update affects a lot of packages that's why it's not on master > branch yet. Thank you for the patch, anyway! > > For now, while 1.4 is not released yet, as a temporary fix I can suggest > to install the package providing bash-completion to ~/.guix-profile or > system profile. There are other workarounds, but this one seems to be > the easiest. > > > > > --- > > bash-completion: fix loading of completion functions with guix home > > > > * gnu/packages/patches/bash-completion-directories.patch: modified > > --- > > gnu/packages/patches/bash-completion-directories.patch | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > diff --git a/gnu/packages/patches/bash-completion-directories.patch b/gnu/packages/patches/bash-completion-directories.patch > > index 021e34653b..3c6b3082ea 100644 > > --- a/gnu/packages/patches/bash-completion-directories.patch > > +++ b/gnu/packages/patches/bash-completion-directories.patch > > @@ -10,7 +10,7 @@ This is what this patch does. > > > > --- a/bash_completion > > +++ b/bash_completion > > -@@ -2016,7 +2016,13 @@ complete -F _minimal '' > > +@@ -2016,7 +2016,15 @@ complete -F _minimal '' > > > > __load_completion() > > { > > @@ -19,6 +19,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" > > It seems $base not needed anymore, it's a rudiment from an old version > of the patch. I'll remove it. > > > + "$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" ) > > + > > > > base-commit: 47c11772dfe840a536ed7ec438fe832878f51054 > > > -- > Best regards, > Andrew Tropin -- Maze From unknown Sun Jul 13 20:18:55 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 29 Sep 2022 11:24:11 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 18 07:34:00 2023 Received: (at control) by debbugs.gnu.org; 18 Mar 2023 11:34:00 +0000 Received: from localhost ([127.0.0.1]:46425 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdUoy-0006PF-Fc for submit@debbugs.gnu.org; Sat, 18 Mar 2023 07:34:00 -0400 Received: from wolfsden.cz ([37.205.8.62]:48934) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdUov-0006P3-CG for control@debbugs.gnu.org; Sat, 18 Mar 2023 07:33:58 -0400 Received: by wolfsden.cz (Postfix, from userid 104) id F2C5F24E71C; Sat, 18 Mar 2023 11:33:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1679139235; bh=MNfOBVcIr/6kP0FPtD3SfAN15hv77UKUcKGLh3bjfqE=; h=Date:From:To:Subject; b=Te8jt9O0V8yFfIWwqE/OtkaJ/cVqIcYT9f9hQO0WDT8sXqMV2mqdMAhpq6TfXZOGe Rye67XFgyX64/a4XpS46bo6SL4NwelLmfykwKGf8tQSn0ZbMf9NDJUIoWcuz0iOaGr ZYB0ggQljEzwOUQnjZLPSWv/b/ghah08cnpnICTcjMgwKv4aRMayGqMgMmiMxlLnyJ h6/KuRszpMdfzCKXGjRcr+r0G/G+zxCIpvUSpzUAZMSjYWrvbjnm5qIzXLtzeQXS8M HqIhNjaIY0jWWXAb4R5NH5wrRyzC6nC+mwxKqQ6qso84qPjc8rkfHXO12Jy1AwxCB+ A4Ev8hPb8tEW5z4skijsc694v7vKeGnkEHE4ifNPbJSyqi4HthgF0vbkefhCQw/UsU mLZqzRTRXEsmzOsGdCL1+ltpO6MHsdtzxBWyPlNjqYH6AnTOjXuaCITYCWH5zmj5jK joHXnFU3xSKs4MXOtuqHDkAL/5dwCIGLvHVTNN+AnM38jKDXjOvgMxO6XJ2paPGPxf B67kuBmZ+2ebWWIYyff98oaDY8rowTlQO6vpoJoVtkzxaxGzuwC9+i2G7Vnq/9gs5i bwL5KV+7Hdr/FMpAJ507Q4ixvyWS3tLHQEsxR7X1Fkl2V9QitjeyOddxoaRT+ywOfG YSovfEf/RAYArrOAPwvhAIMw= X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on wolfsden X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from localhost (78-80-28-169.customers.tmcz.cz [78.80.28.169]) by wolfsden.cz (Postfix) with ESMTPSA id 1192F252F3A for ; Sat, 18 Mar 2023 11:33:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1679139235; bh=MNfOBVcIr/6kP0FPtD3SfAN15hv77UKUcKGLh3bjfqE=; h=Date:From:To:Subject; b=Te8jt9O0V8yFfIWwqE/OtkaJ/cVqIcYT9f9hQO0WDT8sXqMV2mqdMAhpq6TfXZOGe Rye67XFgyX64/a4XpS46bo6SL4NwelLmfykwKGf8tQSn0ZbMf9NDJUIoWcuz0iOaGr ZYB0ggQljEzwOUQnjZLPSWv/b/ghah08cnpnICTcjMgwKv4aRMayGqMgMmiMxlLnyJ h6/KuRszpMdfzCKXGjRcr+r0G/G+zxCIpvUSpzUAZMSjYWrvbjnm5qIzXLtzeQXS8M HqIhNjaIY0jWWXAb4R5NH5wrRyzC6nC+mwxKqQ6qso84qPjc8rkfHXO12Jy1AwxCB+ A4Ev8hPb8tEW5z4skijsc694v7vKeGnkEHE4ifNPbJSyqi4HthgF0vbkefhCQw/UsU mLZqzRTRXEsmzOsGdCL1+ltpO6MHsdtzxBWyPlNjqYH6AnTOjXuaCITYCWH5zmj5jK joHXnFU3xSKs4MXOtuqHDkAL/5dwCIGLvHVTNN+AnM38jKDXjOvgMxO6XJ2paPGPxf B67kuBmZ+2ebWWIYyff98oaDY8rowTlQO6vpoJoVtkzxaxGzuwC9+i2G7Vnq/9gs5i bwL5KV+7Hdr/FMpAJ507Q4ixvyWS3tLHQEsxR7X1Fkl2V9QitjeyOddxoaRT+ywOfG YSovfEf/RAYArrOAPwvhAIMw= Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 9cfbeb98 for ; Sat, 18 Mar 2023 11:33:54 +0000 (UTC) Date: Sat, 18 Mar 2023 12:33:54 +0100 From: wolf To: control@debbugs.gnu.org Subject: unarchive 57498 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) unarchive 57498 From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 18 07:35:25 2023 Received: (at 57498) by debbugs.gnu.org; 18 Mar 2023 11:35:25 +0000 Received: from localhost ([127.0.0.1]:46437 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdUqL-0006SU-Al for submit@debbugs.gnu.org; Sat, 18 Mar 2023 07:35:25 -0400 Received: from wolfsden.cz ([37.205.8.62]:48444) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdUqJ-0006SE-Bk for 57498@debbugs.gnu.org; Sat, 18 Mar 2023 07:35:24 -0400 Received: by wolfsden.cz (Postfix, from userid 104) id 5A7EC255225; Sat, 18 Mar 2023 11:35:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1679139317; bh=AhxCZRqFxJNpi6goaq9UUKP/Rn1Ar99DySZe4dtjxN0=; h=Resent-From:Resent-Date:Resent-To:Date:From:To:Subject; b=MBEU0mL9GSKXDCNodA9PDQXbNPPUtBwVh0UlLIDGDYG8tuWfATP1eGo+PNO6UX/pO e7Kis+x0HIugALEoS3I88cnGgam+bbpjNffzH0dmGwfRj5xXNbyNgNOTzHfYbkFgVo Q0ocSbKn7y1PrrzaiXW77WsO3yoGU6a5ljScJlu5yCV1JPIyLHhEE2pbC8E0W0fcqE d4YA1OEOFYk3QVx4PYI2iTZUC43MxJsPytDjPa/A8nRYMPVMbXsr4ocTdYWzzsjbov FG/DC+ZFdzeNYd4qUC6ssMWD1HOFMVDumA6lR0Qz+XWJCwD0n6yOFy7Z5zj5zwp851 u71y5ERQt8lhQ7vrQAZElgRtlXQbC5v/LvScDUNwOn1sZqzicG7S1Xuroo+gOk/jMG y9Hn17p39VVd8voCejuOgjtDhD97OAnlo1ZHtcheNFxo7zPn48HVSaKcBD698P06JX aR+bc4yFOSIjwh5a+RMeI5LHaSKnAfslSpkNRnQEOG4AVYwqzS4MR2DR2gaSXWCVA+ iYzVHe4IjG5YfX8fxS63gZhIGr+uE9w8Q8syRdLdVnpgXjRM/Bz67krEKeixS33LMy b4zLbNRGRxNODUKGp8GJqcV+B3VWVKlsgnXXVOrI/yWPUaKQTpU5PzNfsIElM4yhMg s8+rR0mFDS9WbaVymP4GJfvc= X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on wolfsden X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from localhost (78-80-28-169.customers.tmcz.cz [78.80.28.169]) by wolfsden.cz (Postfix) with ESMTPSA id 1E1442530FD for <57498@debbugs.gnu.org>; Sat, 18 Mar 2023 11:35:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1679139313; bh=AhxCZRqFxJNpi6goaq9UUKP/Rn1Ar99DySZe4dtjxN0=; h=Resent-From:Resent-Date:Resent-To:Date:From:To:Subject; b=Zu4/bBi8NwaV3tX4PElM2UNUrcy/g2uvxd3sbvFF5k/UulCh/NPpCYFdXcOThN5JE wH/IKk/UMaTuM3ZYxtwLRaF/aLiIEVh0NGG+OwkAU2d9wsBqeIk98XIwvC61Ol8Vi6 0Zsjb0kjJQauL16piYbHAc6WpsiDdtl8N9G9yGd/Gt2RC64vXjQfvLUxU3ml4q1/3C XbMWHArn9rda3TTIlpYyV698bXKZu/hjS6FSfgxDYLRUnzQ4XRiEdBQu/G51WUlh7l TkUZ5suTw9dkgni5QiXHwo22e8EG1x+5MJ6gz8VOF4ZUaWQJk9PILzomN4CTm0Qwzq m+yUGlRghcMcR/23rV0oJieCWBGvLNomVuqNqJ/7uMJFvL9Fdnu/j/3mcae2vXVUKK UdmlqWo5bVUoGm0vACoKKnzMbVvwVXgXHxTX7lvy+hylzUITYJdbMZuHEZqdBrBezf W05RqZsZusqk6hEYaH0IVZU8c1Tsv9s0CEHzgNxpdAc1D6F5k+J/3XvdRJqjHCNsnh t+NkQlvsR83mTAO+ET+d4EjKxEzSEECnU8fFI8qPElN52ikEUp//FLO50Armnm6GGu oeUvgPIcV7V9LG2Z84xySGITQ0/1OiflvZgSZJhxc1Ln2pFYg2lN2Y2y998w4Xwy7o 63IDhvuRUXlAJI/WJKEpEh78= Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id ccdad388 for <57498@debbugs.gnu.org>; Sat, 18 Mar 2023 11:35:12 +0000 (UTC) Resent-From: wolf Resent-Date: Sat, 18 Mar 2023 12:35:12 +0100 Resent-Message-ID: Resent-To: 57498@debbugs.gnu.org Date: Sat, 18 Mar 2023 12:19:19 +0100 From: wolf To: 57498@debbugs.gnu.org Subject: Re: bug#57498: bash-completion completion functions not loaded when using guix home Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="r0y+ICo4nfcYPdAY" Content-Disposition: inline X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 57498 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) --r0y+ICo4nfcYPdAY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, if anyone else runs into this before the core-updates merge happens, reason= ably simple solution without installing packages into other profiles (or system-= wide) seems to be to add following into services in home definition: ;; TODO: https://issues.guix.gnu.org/57498, should not be necessary after ;; core-updates merge (simple-service 'guix-home-bash-completion home-bash-service-type (home-bash-extension (bashrc (list (plain-file "load-guix-home-bash-completion" " for f in ~/.guix-home/profile/etc/bash_completion.d/* ~/.guix-home/profile/= share/bash-completion/completions/*; do [ -r \"$f\" ] && . \"$f\" done"))))) Leaving it here since it might be useful to someone. W. --=20 There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --r0y+ICo4nfcYPdAY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmQVnjcACgkQL7/ufbZ/ wanHrA//UoDE/wQLc/TUeCLsBvH06YnAoItR62HMR/gS2jxUh1BR9U2bsxCMv9v0 QIFS83bbn0ZlKjgGAVw5ero1jh8vlASfc9DxHjrLhhYJBvmXj99Q85t6R4ysBdjy YDqAMyoseI/D0+6Slg/SmZQTUFW2iqTU92dOvRqd9qVZy+9hz0bObm8bULIj9pKT MwaystraU7xac7crAdDraCxG3ZaSBzPL/8iEbiYZ+k+EqYtYhSFJLyEDX6c2Tem/ XHXImNnp+YfzZWJvt2+ps+7RM4CoU+BRRNxtOSrCykcyV17s3wDoMvEd69ONSm1q m/oqu6fszwBj9JR5wEUW4oTL9EIi6S3fdSFEu8Aw1W1HtAtLi4CWSlOl5aVnVqRb i/pH73LJ2/XkddXLK2WP2uOhuLzXv/2B4rbdR2i/3QlRQk29ZbfYVET1y/FLRIIC 2e9SOt0LWisIa62d61KrAzeBCethZvjnpm7/j7++txXoAvwrpyQY7j2GstVy8UTb 1DPJloA07yaonfIC2s5lc1bLQCR60377Nei1MGsmpOTImdLl0w5KocA3USqNzSty ClUd7s4gM8SYUSJJhOESuHcuPFwS12/WNzhewJNIT6oJGfFaJ/epq1doLmJVcpq1 r5xFJ9gJ/37wgYrDYjZ+v8ap4/g+w+b2yY+wywA72xFGxYJfSYY= =MgzC -----END PGP SIGNATURE----- --r0y+ICo4nfcYPdAY-- From unknown Sun Jul 13 20:18:55 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 16 Apr 2023 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator