I usually spawn applications from my terminal by wrapping the command in a nohup and &, for example nohup vlc blah.mp4 &. This still shows the gear icon even though the application is not running in the background nor is it tied to that specific terminal window. To change this behaviour I changed line 210 from [[ $(jobs -l | wc -l) -gt 0 ]] && symbols+="%{%F{cyan}%}⚙" to [[ $(jobs -l | sed '/nohup/d' | wc -l) -gt 0 ]] && symbols+="%{%F{cyan}%}⚙" so that commands started with nohup are not included in the check for background processes.
I usually spawn applications from my terminal by wrapping the command in a
nohup
and&
, for examplenohup vlc blah.mp4 &
. This still shows the gear icon even though the application is not running in the background nor is it tied to that specific terminal window. To change this behaviour I changed line 210 from[[ $(jobs -l | wc -l) -gt 0 ]] && symbols+="%{%F{cyan}%}⚙"
to[[ $(jobs -l | sed '/nohup/d' | wc -l) -gt 0 ]] && symbols+="%{%F{cyan}%}⚙"
so that commands started with nohup are not included in the check for background processes.