mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-28 04:03:39 +08:00
12 lines
502 B
Fish
12 lines
502 B
Fish
function fish_update_completions --description "Update man-page based completions"
|
|
# Don't write .pyc files, use the manpath, clean up old completions
|
|
# display progress.
|
|
set -l update_args -B $__fish_data_dir/tools/create_manpage_completions.py --manpath --cleanup-in ~/.config/fish/generated_completions --progress $argv
|
|
if set -l python (__fish_anypython)
|
|
$python $update_args
|
|
else
|
|
printf "%s\n" (_ "python executable not found") >&2
|
|
return 1
|
|
end
|
|
end
|