aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Hovorka <[email protected]>2021-07-20 14:23:10 -0600
committerAlexis Hovorka <[email protected]>2021-07-20 14:23:10 -0600
commitdcf8f3b48c126f23afe0f41f688b307135050564 (patch)
treeeb67a5d415f95a166bdae94fd43d4b5452242067
parentb9f8e179345814557df45442750f2267659266d6 (diff)
[feat] Add prompt symbols for suspended jobs
-rw-r--r--base/zsh/prompt_pure_setup12
1 files changed, 11 insertions, 1 deletions
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+=" "