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.
|
2019-02-26 16:22:23 +08:00
|
|
|
set -l update_args -B $__fish_data_dir/tools/create_manpage_completions.py --manpath --cleanup-in ~/.config/fish/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
|
|
|
|
printf "%s\n" (_ "python executable not found")
|
|
|
|
return 1
|
2017-04-20 19:35:20 +08:00
|
|
|
end
|
2012-04-12 10:05:43 +08:00
|
|
|
end
|