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.
|
2019-02-26 08:22:23 +00: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-09 16:57:49 +00:00
|
|
|
if set -l python (__fish_anypython)
|
|
|
|
$python $update_args
|
2017-10-12 13:00:50 +00:00
|
|
|
else
|
|
|
|
printf "%s\n" (_ "python executable not found")
|
|
|
|
return 1
|
2017-04-20 11:35:20 +00:00
|
|
|
end
|
2012-04-12 02:05:43 +00:00
|
|
|
end
|