From dcf8f3b48c126f23afe0f41f688b307135050564 Mon Sep 17 00:00:00 2001 From: Alexis Hovorka Date: Tue, 20 Jul 2021 14:23:10 -0600 Subject: [feat] Add prompt symbols for suspended jobs --- base/zsh/prompt_pure_setup | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/base/zsh/prompt_pure_setup b/base/zsh/prompt_pure_setup index a955849..c76dee2 100644 --- a/base/zsh/prompt_pure_setup +++ b/base/zsh/prompt_pure_setup @@ -137,23 +137,33 @@ prompt_pure_preprompt_render() { preprompt+="%F{$PROMPT_HOST_COLOR}%K{18}%f" fi preprompt+="%K{18} " + # directory, colored by vim status preprompt+="%B%F{$STATUS_COLOR}%c%f%b" preprompt+="%K{18}" + # git info preprompt+="%F{$git_color}${vcs_info_msg_0_}${prompt_pure_git_dirty}%f" preprompt+="%K{18}" + # git pull/push arrows preprompt+="%F{cyan}${prompt_pure_git_arrows}%f" preprompt+="%K{18}" + # username and machine if applicable #preprompt+=$prompt_pure_username + # execution time #preprompt+="%F{20}${prompt_pure_cmd_exec_time}%f" + + # suspended jobs + preprompt+=" %F{8}" + for i in `seq "$(jobs | wc -l)"`; do preprompt+=""; done + # end with symbol, colored by previous command exit code # local symbol_color="%(?.${PURE_PROMPT_SYMBOL_COLOR:-magenta}.red)" # preprompt+=" %F{$symbol_color}${PURE_PROMPT_SYMBOL:-❯}%f" - preprompt+=" %F{18}%(?.%k.%K{1}%F{1}%k)%f" + preprompt+="%F{18}%(?.%k.%K{1}%F{1}%k)%f" #  preprompt+=" " -- cgit v1.2.3-70-g09d2