Use fish_add_path instead of set
This commit is contained in:
parent
13012429d1
commit
8bad0e2afd
1 changed files with 2 additions and 3 deletions
|
|
@ -73,9 +73,8 @@ class Fish(Module):
|
||||||
self.commands = []
|
self.commands = []
|
||||||
self.interactive_commands = []
|
self.interactive_commands = []
|
||||||
|
|
||||||
if self.path:
|
for segment in self.path:
|
||||||
segments = " ".join(fescape(s) for s in self.path)
|
self.add_command(f"fish_add_path --path --append {fescape(segment)}")
|
||||||
self.add_command(f"set PATH $PATH {segments}")
|
|
||||||
for name, replacement in sorted(self.abbrs.items()):
|
for name, replacement in sorted(self.abbrs.items()):
|
||||||
self.add_interactive(f"'abbr' {escape(name)} {fescape(replacement)}")
|
self.add_interactive(f"'abbr' {escape(name)} {fescape(replacement)}")
|
||||||
for name, value in sorted(self.env_vars.items()):
|
for name, value in sorted(self.env_vars.items()):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue