1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # axemoji.axzshtheme: Fancier AX-ZSH Theme
4 ZSH_THEME_PROMPT_PREFIX_SPACING=" "
5 ZSH_THEME_PROMPT_SUFFIX_SPACING=" "
7 if axzsh_is_widechar_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")
16 [[ -n "$VTE_VERSION" ]] \
20 ZSH_THEME_VCS_PROMPT_CLEAN="👌$emoji_spacing"
21 ZSH_THEME_VCS_PROMPT_DIRTY="👻$emoji_spacing"
23 # Prompt on right side
24 RPS1="%(?..%{$fg_no_bold[red]%}❌$emoji_spacing%? ↵%{$reset_color%})"
26 # Non-UTF8 or incompatible terminal
30 RPS1="%(?..%{$fg_no_bold[red]%}<%?>%{$reset_color%})"
33 PS1="${system_emoji}${emoji_spacing} $(ax_logname_prompt_yn)$(ax_hostname_prompt_yn)%B%2~%b"'$(ax_vcs_prompt)'"$(ax_prompt)"
35 # Default execution trace prompt.
36 PS4="$fg_no_bold[yellow]->$reset_color "
37 # This prompt is compatible with sh(1) and bash(1), too, so export it!
40 unset system_emoji emoji_spacing