2012-04-12 10:05:43 +08:00
|
|
|
function fish_update_completions --description "Update man-page based completions"
|
2019-02-26 16:20:21 +08:00
|
|
|
# Don't write .pyc files, use the manpath, clean up old completions
|
|
|
|
# display progress.
|
2024-04-27 15:45:28 +08:00
|
|
|
set -l update_args -B $__fish_data_dir/tools/create_manpage_completions.py --manpath --cleanup-in $__fish_cache_dir/generated_completions --progress $argv
|
2019-03-10 00:57:49 +08:00
|
|
|
if set -l python (__fish_anypython)
|
|
|
|
$python $update_args
|
2017-10-12 21:00:50 +08:00
|
|
|
else
|
2022-04-04 11:57:55 +08:00
|
|
|
printf "%s\n" (_ "python executable not found") >&2
|
2017-10-12 21:00:50 +08:00
|
|
|
return 1
|
2017-04-20 19:35:20 +08:00
|
|
|
end
|
2012-04-12 10:05:43 +08:00
|
|
|
end
|