mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-05 01:33:41 +08:00
7ef2d5e86f
This removes a need for packagers to either patch our shebangs or pick a particular python. This was already done in __fish_config_interactive (where we need to duplicate the code because it involves backgrounding). Work towards #3970.
12 lines
489 B
Fish
12 lines
489 B
Fish
function fish_update_completions --description "Update man-page based completions"
|
|
# Clean up old paths
|
|
set -l update_args -B $__fish_datadir/tools/create_manpage_completions.py --manpath --cleanup-in '~/.config/fish/completions' --cleanup-in '~/.config/fish/generated_completions' --progress
|
|
if command -qs python3
|
|
python3 $update_args
|
|
else if command -qs python2
|
|
python2 $update_args
|
|
else if command -qs python
|
|
python $update_args
|
|
end
|
|
end
|