From 5e948cbaa244ec8f0441042072f233dc73fdba83 Mon Sep 17 00:00:00 2001 From: Roman Inflianskas Date: Sat, 29 Sep 2018 20:00:02 +0300 Subject: [PATCH] Don't show bg_job_glyph after cd command when using autojump `autojump` is executed every time user uses `cd` command. `bobthefish` using `jobs` notices that `autojump` is running and shows `bg_job_glyph` (`%` by default). This commit filters running jobs and shows `bg_job_glyph` only when necessary. --- fish_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index a359c55..883d4b4 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -361,7 +361,7 @@ function __bobthefish_prompt_status -S -a last_status -d 'Display flags for a no and set superuser 1 # Jobs display - jobs -p >/dev/null + jobs -c | grep -v Command | grep -v autojump >/dev/null and set bg_jobs 1 if [ "$nonzero" -o "$superuser" -o "$bg_jobs" ]