help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to do initialization specific to guix repl inside .guile?


From: Parnikkapore
Subject: Re: How to do initialization specific to guix repl inside .guile?
Date: Sat, 09 Mar 2024 00:45:32 +0700
User-agent: Evolution 3.44.4-0ubuntu2

Hi,

On Wed, 2024-03-06 at 15:47 +0100, Tomas Volf wrote:
> Is there a way to detect from .guile whether guix repl or guile repl is 
> starting<br>
> so that I can branch on that?<br>

The kludge I currently use for this is this:

```scheme
(when (equal? (module-name (current-module)) '(guix-user))
  ; `guix repl`-only init code
  )
```

reply via email to

[Prev in Thread] Current Thread [Next in Thread]