From 4f6ac06b211e7b858c9c88d227ce7256f9d71462 Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Sun, 27 Nov 2016 02:00:21 -0800 Subject: [PATCH] Don't automatically generate completions without python This is doomed to cause a messy error on every launch on any systems that are using fish without python installed. Fixes #3588 --- share/functions/__fish_config_interactive.fish | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/share/functions/__fish_config_interactive.fish b/share/functions/__fish_config_interactive.fish index bc810b8c7..29014ef4e 100644 --- a/share/functions/__fish_config_interactive.fish +++ b/share/functions/__fish_config_interactive.fish @@ -110,8 +110,9 @@ function __fish_config_interactive -d "Initializations that should be performed # Generate man page completions if not present. # if not test -d $userdatadir/fish/generated_completions - #fish_update_completions is a function, so it can not be directly run in background. - eval (string escape "$__fish_bin_dir/fish") "-c 'fish_update_completions > /dev/null ^/dev/null' &" + command -s python >/dev/null # feature needs python, don't try this on launch without it (#3588) + # fish_update_completions is a function, so it can not be directly run in background. + and eval (string escape "$__fish_bin_dir/fish") "-c 'fish_update_completions >/dev/null ^/dev/null' &" end #