GNU bug report logs - #57498
bash-completion completion functions not loaded when using guix home

Previous Next

Package: guix;

Reported by: Maze <maze <at> pkbd.org>

Date: Wed, 31 Aug 2022 07:36:02 UTC

Severity: normal

Done: Andrew Tropin <andrew <at> trop.in>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: wolf <wolf <at> wolfsden.cz>
To: 57498 <at> debbugs.gnu.org
Subject: bug#57498: bash-completion completion functions not loaded when using guix home
Date: Sat, 18 Mar 2023 12:19:19 +0100
[Message part 1 (text/plain, inline)]
Hi,

if anyone else runs into this before the core-updates merge happens, reasonably
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.

-- 
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 2 years and 89 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.