fish-shell/share
Fabian Boehm e5b2c3e4be Add helper to cache | source completions
We have a lot of completions that look like

```fish
pip completion --fish 2>/dev/null | source
```

That's *fine*, upstream gives us some support.

However, the scripts they provide change very rarely, usually not even
every release, and so running them again for every shell is extremely
wasteful.

In particular the python tools are very slow, `pip completion --fish`
takes about 180ms on my system with a hot cache, which is quite
noticeable.

So what we do is we run them once, store them in a file in our cache
directory, and then serve from that.

We store the mtime of the command we ran, and compare against that for
future runs. If the mtime differs - so if the command was up or
downgraded, we run it again.
2024-01-21 14:18:50 +01:00
..
completions Remove share/completions/highlight.fish 2024-01-20 11:39:48 +01:00
functions Add helper to cache | source completions 2024-01-21 14:18:50 +01:00
groff
tools fish_config: Fix on python < 3.12 if not on Windows 2024-01-12 18:42:55 +01:00
__fish_build_paths.fish.in
config.fish share/config.fish: Skip __fish_set_locale if $LANG is already set 2023-09-09 15:53:20 +02:00