8eff9a545594fc7b3f3fad231fecc107e1dde567
- Author
- Michele Bologna <michele.bologna@gmail.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
fix(michelebologna): syntax, escaping, label (#13756)
Diff
1diff --git a/themes/michelebologna.zsh-theme b/themes/michelebologna.zsh-theme
2index b13b2caf170c60b759614e1803a24d6149d7a7f9..449c280c5439e15341ecde1f799428aa665ba457 100644
3--- a/themes/michelebologna.zsh-theme
4+++ b/themes/michelebologna.zsh-theme
5@@ -31,11 +31,10 @@ local blue="%{$fg_bold[blue]%}"
6 local magenta="%{$fg_bold[magenta]%}"
7 local reset="%{$reset_color%}"
8
9-local -a color_array
10-color_array=($green $red $cyan $yellow $blue $magenta)
11+local -a color_array=($green $red $cyan $yellow $blue $magenta)
12
13 local username_color=$blue
14-local hostname_color=$color_array[$[((#HOST))%6+1]] # choose hostname color based on first character
15+local hostname_color=$color_array[$(( (#HOST) % 6 + 1 ))] # choose hostname color based on first character
16 local current_dir_color=$blue
17
18 local username="%n"
19@@ -45,7 +44,7 @@ local current_dir="%~"
20 local username_output="%(!..${username_color}${username}${reset}@)"
21 local hostname_output="${hostname_color}${hostname}${reset}"
22 local current_dir_output="${current_dir_color}${current_dir}${reset}"
23-local jobs_bg="${red}fg: %j$reset"
24+local jobs_bg="${red}jobs: %j$reset"
25 local last_command_output="%(?.%(!.$red.$green).$yellow)"
26
27 ZSH_THEME_GIT_PROMPT_PREFIX=""
28@@ -55,10 +54,10 @@ ZSH_THEME_GIT_PROMPT_CLEAN=""
29 ZSH_THEME_GIT_PROMPT_UNTRACKED="$blue%%"
30 ZSH_THEME_GIT_PROMPT_MODIFIED="$red*"
31 ZSH_THEME_GIT_PROMPT_ADDED="$green+"
32-ZSH_THEME_GIT_PROMPT_STASHED="$blue$"
33+ZSH_THEME_GIT_PROMPT_STASHED="${blue}\$"
34 ZSH_THEME_GIT_PROMPT_EQUAL_REMOTE="$green="
35-ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE=">"
36-ZSH_THEME_GIT_PROMPT_BEHIND_REMOTE="<"
37+ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE="${green}>"
38+ZSH_THEME_GIT_PROMPT_BEHIND_REMOTE="${yellow}<"
39 ZSH_THEME_GIT_PROMPT_DIVERGED_REMOTE="$red<>"
40
41 function michelebologna_git_prompt {