tide icon indicating copy to clipboard operation
tide copied to clipboard

Do not export cached variables in the env

Open n-p-e opened this issue 5 months ago • 0 comments

Is your feature request related to a problem? Please describe

I noticed tide makes the output of env look funny because it stores color escape codes in the env. I wonder if these variables can be changed to only exported when passing into the subprocess.

Example:

$ env | jq -R . | jq -s .

[
  "_tide_color_separator_same_color=\u001b[38;2;127;132;156m",
  "_tide_location_color=\u001b[38;2;180;190;254m",
  ...
]

Describe the solution you'd like

Instead of defining these variables in functions/_tide_cache_variables.fish as -gx', change them to -gonly and pass them to the subshell viaset -lx`.

These changes seems to work. changes

n-p-e avatar Aug 27 '25 22:08 n-p-e