]> arthur.barton.de Git - ax-zsh.git/blob - themes/axemoji.axzshtheme
20b26211675b2180a7c21725069a2c4d7d4f90e3
[ax-zsh.git] / themes / axemoji.axzshtheme
1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # axemoji.axzshtheme: More fancy AX-ZSH Theme
3
4 ZSH_THEME_PROMPT_PREFIX_SPACING=" "
5 ZSH_THEME_PROMPT_SUFFIX_SPACING=" "
6
7 if axzsh_is_utf_terminal; then
8         # UTF8 capable terminal:
9         if [[ -r "$HOME/.system_emoji-$SHORT_HOST" ]]; then
10                 system_emoji=$(<"$HOME/.system_emoji-$SHORT_HOST")
11         elif [[ -r "$HOME/.system_emoji" ]]; then
12                 system_emoji=$(<"$HOME/.system_emoji")
13         else
14                 system_emoji="🍀"
15         fi
16         emoji_spacing=" "
17
18         ZSH_THEME_VCS_PROMPT_CLEAN="👌$emoji_spacing"
19         ZSH_THEME_VCS_PROMPT_DIRTY="👻$emoji_spacing"
20
21         # Prompt on right side
22         RPS1="%(?..%{$fg_no_bold[red]%}❌ %? ↵%{$reset_color%})"
23 else
24         # Non-UTF8 terminal
25         system_emoji=">"
26         emoji_spacing=""
27
28         RPS1="%(?..%{$fg_no_bold[red]%}<%?>%{$reset_color%})"
29 fi
30
31 PS1="${system_emoji}${emoji_spacing} $(ax_logname_prompt_yn)$(ax_hostname_prompt_yn)%B%2~%b"'$(ax_vcs_prompt)'"$(ax_prompt)"
32
33 unset system_emoji emoji_spacing