Skip to content

(Mac OS) Brew installed age is not picked up by resurrect by default. #116

@LazyRen

Description

@LazyRen

When I set my config as below for the encryption and run the save command,

resurrect.state_manager.set_encryption({
    enable      = true,
    method      = "age",
    private_key = wezterm.home_dir .. "/.config/age/wezterm-resurrect.txt",
    public_key  = "MY_PUBLIC_KEY",
})

I get below error from the WezTerm debug mode.

12:28:38.910 ERROR logging > lua: Decryption failed: ...ersZsresurrectsDswezterm/plugin/resurrect/encryption.lua:83: Encryption failed:zsh:1: command not found: age

I had to change method to /opt/homebrew/bin/age in order to save command to work.
OFC, I can use age command on my shell w/o such error.

resurrect.state_manager.set_encryption({
    enable      = true,
    method      = "/opt/homebrew/bin/age",
    private_key = wezterm.home_dir .. "/.config/age/wezterm-resurrect.txt",
    public_key  = "MY_PUBLIC_KEY",
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions