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.
This commit is contained in:
Roman Inflianskas 2018-09-29 20:00:02 +03:00
parent 0688cd8e98
commit 5e948cbaa2

View File

@ -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" ]