From 264a5fd9db7f14380ffeaf6b64b2fe68fcb48729 Mon Sep 17 00:00:00 2001 From: Abhijeet Shirolikar Date: Tue, 12 Apr 2016 11:12:20 +0200 Subject: [PATCH] Added suspended job count to zsh prompt --- themes/jeena.zsh-theme | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/themes/jeena.zsh-theme b/themes/jeena.zsh-theme index c3d81eb..9e08c22 100644 --- a/themes/jeena.zsh-theme +++ b/themes/jeena.zsh-theme @@ -1,5 +1,7 @@ local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ %s)" -PROMPT='${ret_status}%{$fg_bold[green]%}%n@%m %p%{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%}% %{$reset_color%}' +local prompt_jobs="%(1j.%{$fg[yellow]%}%j%{$reset_color%}%{$fg[red]%}z%{$reset_color%} .)" + +PROMPT='${prompt_jobs}${ret_status}%{$fg_bold[green]%}%n@%m %p%{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%}% %{$reset_color%}' ZSH_THEME_GIT_PROMPT_PREFIX="(%{$fg[red]%}" ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "