Skip to content

Simplify env.fish#508

Open
kkebo wants to merge 1 commit intoswiftlang:mainfrom
kkebo:refactor-env-fish
Open

Simplify env.fish#508
kkebo wants to merge 1 commit intoswiftlang:mainfrom
kkebo:refactor-env-fish

Conversation

@kkebo
Copy link
Contributor

@kkebo kkebo commented Feb 21, 2026

The current env.fish is complicated. The built-in fish_add_path command can simplify it without changing the current behaviors.

The options I used:

  • -m: Move already-included directories to the place they would be added - by default they would be left in place and not added again.
  • -p (default): Add directories to the front of the variable (this is the default).
  • -P: Manipulate $PATH directly.

refs: https://fishshell.com/docs/current/cmds/fish_add_path.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant