tide icon indicating copy to clipboard operation
tide copied to clipboard

Configuration variables must be set for non-interactive sessions

Open Anfid opened this issue 1 year ago • 0 comments

Describe the bug

If a configuration variable is defined exclusively for interactive sessions, it gets ignored.

This seems to me more like a documentation bug, rather than logic bug. I assume tide spawns non-interactive instances of fish to render the prompt, which can't see any configuration variables defined inside status is-interactive blocks. Since this isn't mentioned in README or wiki, default assumption could be that prompt is only necessary for interactive sessions, so configuration variables should only be defined for them.

Steps to reproduce

  1. Install tide and try to configure it, following the wiki;
  2. Add configuration variables inside the default if status is-interactive block;
  3. Reload prompt. Environment variables can be accessed, but configuration isn't applied.

Environment

Output of tide bug-report:

fish version: 3.7.1
tide version: 6.1.1
term: xterm-256color
os: macOS Sonoma 14.6.1
terminal emulator: iTerm2
fish startup: 56.60 millis
fisher plugins: jorgebucaran/fisher gazorby/fish-abbreviation-tips patrickf1/fzf.fish blt-r/hydro jorgebucaran/autopair.fish ilancosman/tide@v6 paldepind/projectdo nickeb96/puffer-fish

Potential solution

Updating README and wiki to state that configuration variables must be defined for non-interactive sessions too.

Anfid avatar Aug 21 '24 10:08 Anfid