From: iyzsong@member.fsf.org (宋文武)
To: Christopher Baines <mail@cbaines.net>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: Add direnv
Date: Wed, 14 Sep 2016 15:49:21 +0800 [thread overview]
Message-ID: <87intyrke6.fsf@member.fsf.org> (raw)
In-Reply-To: <20160910163933.24468-1-mail@cbaines.net> (Christopher Baines's message of "Sat, 10 Sep 2016 17:39:32 +0100")
Christopher Baines <mail@cbaines.net> writes:
> direnv is an environment switcher for the shell. direnv can be used with many
> tools, including Guix environments.
>
> I was lucky enough to meet the original author in London, who showed me direnv,
> and helped me write a function for my .direnvrc file to make it easy to use
> with Guix.
>
> I have the following in my .direnvrc file (in my home directory).
>
> use_guix() {
> eval "$(guix environment "$@" --search-paths)"
> }
>
> This means that I can have something like the following in my .envrc files
>
> use_guix --ad-hoc guile
>
> You need to add a shell hook, and "allow" this file, but after that is done,
> just changing in and out of the directory with the .envrc file in it will
> adjust the environmental variables in your shell.
Cool, applied, thanks!
prev parent reply other threads:[~2016-09-14 7:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-10 16:39 [PATCH] gnu: Add direnv Christopher Baines
2016-09-10 16:39 ` Christopher Baines
2016-09-14 7:49 ` 宋文武 [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=87intyrke6.fsf@member.fsf.org \
--to=iyzsong@member.fsf.org \
--cc=guix-devel@gnu.org \
--cc=mail@cbaines.net \
/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).