fish-shell/share
Fabian Homborg e013422143 Deduplicate $fish_user_paths automatically
In the variable handler, we just go through the entire thing and keep
every element once.

If there's a duplicate, we set it again, which calls the handler
again.

This takes a bit of time, to be paid on each startup. On my system,
with 100 already deduplicated elements, that's about 4ms (compared to
~17ms for adding them to $PATH).

It's also semantically more complicated - now this variable
specifically is deduplicated? Do we just want "unique" variables that
can't have duplicates?

However: This entirely removes the pathological case of appending to
$fish_user_paths in config.fish (which should be an FAQ entry!), and the implementation is quite simple.
2021-07-14 16:37:30 +02:00
..
completions completions/git: do not attempt to complete rev:file in option words 2021-07-14 00:01:20 +02:00
functions vi-mode: Repaint mode after cancelling 2021-07-03 21:37:33 +02:00
groff
tools Address review feedback 2021-07-11 11:23:16 +02:00
__fish_build_paths.fish.in
config.fish Deduplicate $fish_user_paths automatically 2021-07-14 16:37:30 +02:00
lynx.lss