Multiple instances of bash-completion on foreign distros

  • Open
  • quality assurance status badge
Details
One participant
  • Einar Largenius
Owner
unassigned
Submitted by
Einar Largenius
Severity
normal

Debbugs page

Einar Largenius wrote 2 months ago
(address . bug-guix@gnu.org)
87ed0s4hae.fsf@lysator.liu.se
Hello,

I currently run guix on a foreign distro (Fedora 41). I have noticed that bash-completion installed in my user profile wont load. The "native" version of bash-completion installed through dnf wont find completion scripts specific to Guix and also prevents sourcing any later instances of bash-completion. So additional completion-scripts wont be able to load.

The workaround is to load the guix script before any system installed version of it has a chance to load.

Toggle snippet (7 lines)
# ~/.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

It took me a while to figure out. Perhaps a mention of it in the manual would be useful?

--
Med vänliga hälsningar Einar
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 75803@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 75803
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help