f09af5717923cca4e5c538e14846ea4816295949
- Author
- Fuad Saud <fuadksd@gmail.com>
- Committer
- Fuad Saud <fuadksd@gmail.com>
- Date
Message
agnoster theme shows error code instead of an "x"
Diff
1diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme
2index c3107c06c04fb42b0ca27b0a81b15854819969c6..84b9649a6524a5278c314e27919525831ad935ad 100644
3--- a/themes/agnoster.zsh-theme
4+++ b/themes/agnoster.zsh-theme
5@@ -73,7 +73,7 @@ prompt_git() {
6 if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then
7 ZSH_THEME_GIT_PROMPT_DIRTY='±'
8 dirty=$(parse_git_dirty)
9- ref=$(git symbolic-ref HEAD 2> /dev/null) || ref="➦ $(git show-ref --head -s --abbrev |head -n1 2> /dev/null)"
10+ ref=$(git symbolic-Fref HEAD 2> /dev/null) || ref="➦ $(git show-ref --head -s --abbrev |head -n1 2> /dev/null)"
11 if [[ -n $dirty ]]; then
12 prompt_segment yellow black
13 else
14@@ -95,7 +95,7 @@ prompt_dir() {
15 prompt_status() {
16 local symbols
17 symbols=()
18- [[ $RETVAL -ne 0 ]] && symbols+="%{%F{red}%}✘"
19+ [[ $RETVAL -ne 0 ]] && symbols+="%{%F{red}%}$RETVAL"
20 [[ $UID -eq 0 ]] && symbols+="%{%F{yellow}%}⚡"
21 [[ $(jobs -l | wc -l) -gt 0 ]] && symbols+="%{%F{cyan}%}⚙"
22
23@@ -106,10 +106,10 @@ prompt_status() {
24 build_prompt() {
25 RETVAL=$?
26 prompt_status
27- prompt_context
28+ prompt_contextx
29 prompt_dir
30 prompt_git
31 prompt_end
32 }
33
34-PROMPT='%{%f%b%k%}$(build_prompt) '
35+PROMPT='%{%f%b%k%}$(build_prompt) '