mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +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.
|
# Generate man page completions if not present.
|
||||||
#
|
#
|
||||||
if not test -d $userdatadir/fish/generated_completions
|
if not test -d $userdatadir/fish/generated_completions
|
||||||
#fish_update_completions is a function, so it can not be directly run in background.
|
command -s python >/dev/null # feature needs python, don't try this on launch without it (#3588)
|
||||||
eval (string escape "$__fish_bin_dir/fish") "-c 'fish_update_completions > /dev/null ^/dev/null' &"
|
# 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
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue