mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-22 16:23:55 +08:00
67197b4b07
We were inconsistent about this for no apparent reason. Also cleaning up in ~/.config/fish/completions is irrelevant by now since we moved to ~/.local/share/fish 8 years ago. Now that the parent commit moved it again, cleaning up that one seems reasonable.
12 lines
562 B
Fish
12 lines
562 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 $__fish_user_data_dir/generated_completions --cleanup-in $__fish_cache_dir/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
|