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