Skip to content

Initialization fails if process-environment is buffer-local (from envrc) #4

@axgfn

Description

@axgfn

If eshell-atuin-mode is run from a directory with a buffer-local process-environment, then ATUIN_SESSION does not get set globally and eshell-atuin never tries to reinitialize it. This can happen when using a package such as envrc, for example.

Currently I work around the problem by initializing eshell-atuin in a temporary buffer:

(with-temp-buffer
  (eshell-atuin-mode))

But another solution might be to store ATUIN_SESSION in a lisp variable and wrap each call to atuin in with-environment-variables.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions