Don't kill the user's background jobs, woops

This commit is contained in:
Ilan Cosman 2021-03-27 13:05:33 -07:00
parent cdfad003f0
commit f9d47a8f4f

View File

@ -16,10 +16,9 @@ function _tide_background_job --on-event fish_prompt --on-variable fish_bind_mod
set -U $_tide_left_prompt_display_var (_tide_prompt)" </dev/null &
# Remove </dev/null in Fish 3.3.0, see https://github.com/fish-shell/fish-shell/issues/7842
builtin disown
command kill $_tide_last_pid 2>/dev/null
set -g _tide_last_pid (jobs --last --pid) # Replace with $last_pid in Fish 3.3.0
builtin disown $_tide_last_pid 2>/dev/null
end
function _tide_refresh_prompt --on-variable $_tide_left_prompt_display_var --on-variable $_tide_right_prompt_display_var