Browse Source

Add jobs count in prompt

Emmanuel Bouthenot 9 years ago
parent
commit
f7a2666e5f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      zsh/zshrc

+ 2 - 0
zsh/zshrc

@@ -26,6 +26,8 @@ if [[ -f "${ZDOTDIR}/prezto/init.zsh" ]]; then
     zstyle ':completion::complete:*' cache-path "${TMPDIR}/.zcompcache"
     # Remove first '\n' in PS1
     export PS1="$(echo "${PS1}" | sed ':a;N;$!ba;s/\n//')"
+    # Add jobs count at the end of the first line
+    export PS1="$(echo "${PS1}" | sed ':a;N;$!ba;s/\n/%1(j. with %F{161}%j%f job(s).)\n/')"
 fi
 
 #