Skip to content

direnv hook "cannot find column 'PWD'" #1026

Open
@andar1an

Description

@andar1an

I am nu to nushell, and am trying to integrate direnv in the config.

I have copied the hooks to the correct config path, however when I launch my terminal and nushell I get the following error:

 22$env.config.hooks.env_change.PWD = (
 23$env.config.hooks.env_change.PWD | append (source nu-hooks/nu-hooks/direnv/config.nu)
    ·                                  ─┬─
    ·                                   ╰── cannot find column 'PWD'
 24 │ )

I thought that PWD was supposed to automatically be set, and manually trying to set is in config throws and error that it can't be set manually.

How am I supposed to add this hook to my config so that PWD column is available?

Thanks for the help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions