Skip to content

Can't use environment variables in rewrite #280

@danimalquackers

Description

@danimalquackers

Hi, I was hoping to be able to specify a rewrite target using XDG environment variables, for example: $XDG_CONFIG_HOME/gemini to point to ~/.config/gemini, or $XDG_CACHE_HOME/$XDG_DATA_HOME. However, including these in my configuration (as below) just creates a directory called $XDG_CONFIG_HOME in the current directory with a gemini folder inside of it. Is there any way to support environment variable evaluation within the rewrite value?

rules:
- context: []
  env: {}
  mode: directory
  name: Gemini CLI
  only: []
  rewrite: $XDG_CONFIG_HOME/gemini
  target: ~/.gemini

System is running NixOS 25.11 with home-manager programs.boxxy, running boxxy version 0.8.5.

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