From a40c82dcc4674faca68df45b17e3de379cf44bcf Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 9 Jul 2020 18:35:02 +0200 Subject: [PATCH] Check if create_manpage_completions was installed Fixes #7183. --- share/functions/__fish_config_interactive.fish | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/share/functions/__fish_config_interactive.fish b/share/functions/__fish_config_interactive.fish index d0d11c816..534dd7830 100644 --- a/share/functions/__fish_config_interactive.fish +++ b/share/functions/__fish_config_interactive.fish @@ -92,7 +92,10 @@ function __fish_config_interactive -d "Initializations that should be performed # # Don't do this if we're being invoked as part of running unit tests. if not set -q FISH_UNIT_TESTS_RUNNING - if not test -d $__fish_user_data_dir/generated_completions + # Check if our manpage completion script exists because some distros split it out. + # (#7183) + set -l script $__fish_data_dir/tools/create_manpage_completions.py + if not test -d $__fish_user_data_dir/generated_completions; and test -e "$script" # Generating completions from man pages needs python (see issue #3588). # We cannot simply do `fish_update_completions &` because it is a function.