From: wolf <wolf@wolfsden.cz>
To: 57498@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 [thread overview]
Message-ID: <ZBWeNy7yD5N+/m/F@ws> (raw)
In-Reply-To: <20220831073502.ru6dye2wbgc6vrbu@ubik.pkbd.org>
[-- Attachment #1: Type: text/plain, Size: 831 bytes --]
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.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2023-03-18 11:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-31 7:35 bug#57498: bash-completion completion functions not loaded when using guix home Maze
2022-08-31 11:55 ` Andrew Tropin
2022-08-31 12:21 ` Maze
2023-03-18 11:19 ` wolf [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZBWeNy7yD5N+/m/F@ws \
--to=wolf@wolfsden.cz \
--cc=57498@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).