mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Autogenerate manpage completions in background if they do not exist
This commit is contained in:
parent
63d93a2f9a
commit
0f02997bcc
1 changed files with 6 additions and 0 deletions
|
@ -137,6 +137,12 @@ function __fish_config_interactive -d "Initializations that should be performed
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if not test -d $configdir/fish/generated_completions
|
||||||
|
echo "Man page completions not found on your system. Running 'fish_update_completions' in background. You can continue to use fish while the process is being done."
|
||||||
|
#fish_update_completions is a function, so it can not be directly run in background.
|
||||||
|
fish -c 'fish_update_completions > /dev/null ^/dev/null' &
|
||||||
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
# Print a greeting
|
# Print a greeting
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue