From 8bad0e2afda73114e7c0a6cbec737cfc6b5fc81d Mon Sep 17 00:00:00 2001 From: Joscha Date: Wed, 7 Jan 2026 00:31:27 +0100 Subject: [PATCH] Use fish_add_path instead of set --- pasch/modules/fish.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pasch/modules/fish.py b/pasch/modules/fish.py index 7aa8bff..541be66 100644 --- a/pasch/modules/fish.py +++ b/pasch/modules/fish.py @@ -73,9 +73,8 @@ class Fish(Module): self.commands = [] self.interactive_commands = [] - if self.path: - segments = " ".join(fescape(s) for s in self.path) - self.add_command(f"set PATH $PATH {segments}") + for segment in self.path: + self.add_command(f"fish_add_path --path --append {fescape(segment)}") for name, replacement in sorted(self.abbrs.items()): self.add_interactive(f"'abbr' {escape(name)} {fescape(replacement)}") for name, value in sorted(self.env_vars.items()):