From unknown Sun Jun 22 00:18:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#75803: Multiple instances of bash-completion on foreign distros Resent-From: Einar Largenius Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 24 Jan 2025 10:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 75803 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 75803@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.173771585024746 (code B ref -1); Fri, 24 Jan 2025 10:51:02 +0000 Received: (at submit) by debbugs.gnu.org; 24 Jan 2025 10:50:50 +0000 Received: from localhost ([127.0.0.1]:43786 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tbHH0-0006R3-Hp for submit@debbugs.gnu.org; Fri, 24 Jan 2025 05:50:50 -0500 Received: from lists.gnu.org ([2001:470:142::17]:35270) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tbHGx-0006Qn-I9 for submit@debbugs.gnu.org; Fri, 24 Jan 2025 05:50:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tbHGr-0006kX-KX for bug-guix@gnu.org; Fri, 24 Jan 2025 05:50:41 -0500 Received: from mail.lysator.liu.se ([2001:6b0:17:f0a0::3]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tbHGp-0004tK-FK for bug-guix@gnu.org; Fri, 24 Jan 2025 05:50:41 -0500 Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id DD4CF853E for ; Fri, 24 Jan 2025 11:50:34 +0100 (CET) Received: by mail.lysator.liu.se (Postfix, from userid 1004) id D08408456; Fri, 24 Jan 2025 11:50:34 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on hermod.lysator.liu.se X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,AWL, T_SCC_BODY_TEXT_LINE autolearn=disabled version=4.0.0 X-Spam-Score: -0.8 Received: from tycho (unknown [213.80.110.182]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id ABF87853D for ; Fri, 24 Jan 2025 11:50:33 +0100 (CET) From: Einar Largenius User-Agent: mu4e 1.12.7; emacs 29.4 Date: Fri, 24 Jan 2025 11:50:33 +0100 Message-ID: <87ed0s4hae.fsf@lysator.liu.se> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: ClamAV using ClamSMTP Received-SPF: pass client-ip=2001:6b0:17:f0a0::3; envelope-from=jaadu@lysator.liu.se; helo=mail.lysator.liu.se X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) 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.3 (/) Hello, I currently run guix on a foreign distro (Fedora 41). I have noticed that b= ash-completion installed in my user profile wont load. The "native" version= of bash-completion installed through dnf wont find completion scripts spec= ific to Guix and also prevents sourcing any later instances of bash-complet= ion. So additional completion-scripts wont be able to load. The workaround is to load the guix script before any system installed versi= on of it has a chance to load. --8<---------------cut here---------------start------------->8--- # ~/.bashrc [ -f "$HOME/.guix-profile/etc/profile.d/bash_completion.sh" ] && \ . "$HOME/.guix-profile/etc/profile.d/bash_completion.sh" [ -f /etc/bashrc ] && . /etc/bashrc --8<---------------cut here---------------end--------------->8--- It took me a while to figure out. Perhaps a mention of it in the manual wou= ld be useful? --=20 Med v=C3=A4nliga h=C3=A4lsningar Einar