mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-22 12:11:16 -03:00
Fix cleanup of autogenerated completions
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.
This commit is contained in:
@@ -96,7 +96,7 @@ end" >$__fish_config_dir/config.fish
|
||||
# We don't want to call `fish -c` since that is unnecessary and sources config.fish again.
|
||||
# Hence we'll call python directly.
|
||||
# c_m_p.py should work with any python version.
|
||||
set -l update_args -B $__fish_data_dir/tools/create_manpage_completions.py --manpath --cleanup-in ~/.config/fish/completions --cleanup-in $__fish_config_dir/generated_completions --cleanup-in $__fish_cache_dir/generated_completions
|
||||
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
|
||||
if set -l python (__fish_anypython)
|
||||
# Run python directly in the background and swallow all output
|
||||
$python $update_args >/dev/null 2>&1 &
|
||||
|
||||
Reference in New Issue
Block a user