mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 12:23:09 +00:00
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
This commit is contained in:
parent
18cc06b38f
commit
4f6ac06b21
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue