fish-shell/share/completions/pipenv.fish
Fabian Boehm b4d9189fd3 Cache pip{,2,3,env} completions
These take a *lot* of time - `pip3` takes 180ms, `pipenv` takes 320ms
on my system.

Note that this removes a number of obsolete workarounds - pip's was
fixed in 2017 (and pip2 is less and less of a thing), pipenv's change
was in 2019.

Since these are packaging tools with access to the internet they
should really be kept up-to-date, so it is unlikely someone still uses
these old versions.
2024-01-21 14:18:50 +01:00

6 lines
352 B
Fish

_PIPENV_COMPLETE=fish_source __fish_cache_sourced_completions pipenv 2>/dev/null
or _PIPENV_COMPLETE=fish_source pipenv 2>/dev/null | source
# manual workaround for pipenv run command completion until this is supported by the built-in mechanism
complete -c pipenv -n "__fish_seen_subcommand_from run" -a "(__fish_complete_subcommand --fcs-skip=2)" -x