Fix display of background jobs in bash prompt

This commit is contained in:
Fernando Schauenburg 2019-10-31 03:15:56 +01:00
parent 3b3e080335
commit ea55d530cf

View file

@ -138,7 +138,7 @@ __ps1_set() {
PS1="\n[$color\u@\h $PS1_PWD\w" # [user@host pwd PS1="\n[$color\u@\h $PS1_PWD\w" # [user@host pwd
PS1+="$PS1_GIT$(__git_ps1 ' %s')" # git status (if in repo) PS1+="$PS1_GIT$(__git_ps1 ' %s')" # git status (if in repo)
PS1+="$PS1_VENV$(__ps1_venv ' %s')" # python virtual env (if active) PS1+="$PS1_VENV$(__ps1_venv ' %s')" # python virtual env (if active)
PS1+="$PS1_JOBS$(__ps1_jobs ' $s')" # background jobs (if any) PS1+="$PS1_JOBS$(__ps1_jobs ' %s')" # background jobs (if any)
PS1+="$PS1_RESET]\n" # ] PS1+="$PS1_RESET]\n" # ]
PS1+="$status$prompt " # last status & prompt PS1+="$status$prompt " # last status & prompt
} }