From: Samir Benmendil Date: Sun, 21 Jun 2015 00:50:10 +0000 (+0100) Subject: zsh: add background jobs to the prompt X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/36d89cd7d7204eaa3d6745fef45bab035b584e40?ds=inline zsh: add background jobs to the prompt --- diff --git a/zsh/lib/prompt.zsh b/zsh/lib/prompt.zsh index 0334516..61f5db8 100644 --- a/zsh/lib/prompt.zsh +++ b/zsh/lib/prompt.zsh @@ -6,8 +6,8 @@ hostcolor=green [[ $(hostname) == "tardis" ]] && hostcolor=red precmd() { - PROMPT='%T %n@%{$fg[$hostcolor]%}%m%{$reset_color%}%-0>..>$(git_prompt_status)%>> -%(?..%{$fg_bold[white]%}%?%{$reset_color%})$(vi_prompt_info)%{%(!.$fg[red]❰.$fg[green]❱)%1G%} ' + PROMPT='%T %n@%{$fg[$hostcolor]%}%m%(1j. $fg_bold[white]↵%{$fg_bold[red]%}%j.)%{$reset_color%}%-0>..>$(git_prompt_status)%>> +%(?..%{$fg_bold[white]%}%?)%{$reset_color%}$(vi_prompt_info)%{%(!.$fg[red]❰.$fg[green]❱)%1G%} ' RPROMPT='%{$fg[green]%}%~%{$reset_color%}' }