From 96eb6f2d704e1765fa6ede56f8713a51bbff3696 Mon Sep 17 00:00:00 2001 From: Ilan Cosman Date: Wed, 24 Mar 2021 22:13:55 -0700 Subject: [PATCH] Disown immediately after background job start --- conf.d/_tide_interactive_init.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf.d/_tide_interactive_init.fish b/conf.d/_tide_interactive_init.fish index b78c858..d1ed016 100644 --- a/conf.d/_tide_interactive_init.fish +++ b/conf.d/_tide_interactive_init.fish @@ -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