From: zimoun <zimon.toutoune@gmail.com>
To: Roel Janssen <roel@gnu.org>
Cc: Guix Devel <guix-devel@gnu.org>
Subject: Re: Adding a subcommand "load-profile"
Date: Tue, 28 Apr 2020 18:54:14 +0200 [thread overview]
Message-ID: <CAJ3okZ0to6iCCbMuy4-xDsW0b4Vf=dLWf0WwOW-fzjxGiobSkA@mail.gmail.com> (raw)
In-Reply-To: <490f77b9f9b0829f985ba717f6fbe008f54a816d.camel@gnu.org>
Dear Roel,
On Tue, 28 Apr 2020 at 17:43, Roel Janssen <roel@gnu.org> wrote:
> --------------------------------------------------------------------------------
> $ guixr package -i ... -p /my/profile
> $ guixr load-profile /my/profile
> [env]$
> # ... A new shell is spawned here.
> # Inside this shell only the environment variables in
> # /my/profile/etc/profile are set ...
> [env]$ exit
> # Return to the normal shell state
> --------------------------------------------------------------------------------
[...]
> Would there be any interest from others to have this as well? And also, the
> shell implementation heavy relies on Bash. What other shells should I attempt
> to implement?
It would be cool!
However, if I remember correctly the previous discussion on such
topic, the issue was to respect the user's shell ($SHELL). This
argument is mitigated by the fact that "guix environment" already uses
Bash to spawn the new shell, if I understand correctly.
Well, I find annoying to not able to "go in" and "go out" in one
profile and I prefer having a Bash specific implementation than
nothing.
So, thank you for the initiative. :-)
> If there is interest in having this as a "load-profile" subcommand, I will post
> an initial implementation to the mailing list ASAP.
Instead of another subcommand, I would suggest to add an option to
"guix environment".
Then an another further step should maybe combine "--load-profile" and
"--ad-hoc" in order to create a temporary "augmented" profile.
All the best,
simon
next prev parent reply other threads:[~2020-04-28 17:01 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-28 15:42 Adding a subcommand "load-profile" Roel Janssen
2020-04-28 16:54 ` zimoun [this message]
2020-04-29 12:47 ` Roel Janssen
2020-04-29 13:48 ` zimoun
2020-04-29 19:14 ` Roel Janssen
2020-04-28 17:34 ` sirgazil
2020-05-03 20:31 ` Ludovic Courtès
2020-05-03 20:56 ` Vagrant Cascadian
2020-05-04 13:36 ` zimoun
2020-05-05 8:52 ` Ludovic Courtès
2020-05-04 13:34 ` zimoun
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='CAJ3okZ0to6iCCbMuy4-xDsW0b4Vf=dLWf0WwOW-fzjxGiobSkA@mail.gmail.com' \
--to=zimon.toutoune@gmail.com \
--cc=guix-devel@gnu.org \
--cc=roel@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).