From 0e0d63c0df9a8718835297434d861312c3bb1e8c Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Wed, 25 Dec 2019 16:29:10 +0100 Subject: [PATCH] completions/pipenv: Really force it to print fish completions "To assume" and such. It doesn't check $SHELL, so it might have some other automagic that can fail (probably still because of the login shell, but I have no idea). Override the special variable that click-completion (https://github.com/click-contrib/click-completion) uses to force it instead. Really fixes #6454. [ci skip] --- share/completions/pipenv.fish | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/share/completions/pipenv.fish b/share/completions/pipenv.fish index 7d5c2941d..45ae4ed25 100644 --- a/share/completions/pipenv.fish +++ b/share/completions/pipenv.fish @@ -1,4 +1,5 @@ if command -sq pipenv - # pipenv determines which completions to print via $SHELL, so override it for this. - SHELL=(status fish-path) pipenv --completion 2>/dev/null | source + # pipenv determines which completions to print via some automagic that might not be perfect. + # Force it to be correct. + _PIPENV_COMPLETE=source-fish pipenv --completion 2>/dev/null | source end