Disown immediately after background job start

This commit is contained in:
Ilan Cosman 2021-03-24 22:13:55 -07:00
parent 7f015294c2
commit 96eb6f2d70

View File

@ -16,10 +16,10 @@ function _tide_background_job --on-event fish_prompt --on-variable fish_bind_mod
set fish_bind_mode $fish_bind_mode
set fish_term24bit $fish_term24bit
set -U $_tide_left_prompt_display_var (_tide_prompt)" &
builtin disown
command kill $_tide_last_pid 2>/dev/null
set -g _tide_last_pid $last_pid
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