]> arthur.barton.de Git - ax-zsh.git/blob - themes/ax.axzshtheme
axzshctl: Look harder for themes in remote modules
[ax-zsh.git] / themes / ax.axzshtheme
1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # ax.axzshtheme: Default AX-ZSH Theme
3
4 ZSH_THEME_VCS_PROMPT_PREFIX_SPACING="("
5
6 ZSH_THEME_PROMPT_PREFIX_SPACING=" "
7 ZSH_THEME_PROMPT_PREFIX="%{$fg_bold[green]%}"
8 ZSH_THEME_PROMPT_ROOT_PREFIX="%{$fg_bold[red]%}"
9 ZSH_THEME_PROMPT_SUFFIX="%b%{$reset_color%}"
10 ZSH_THEME_PROMPT_SUFFIX_SPACING=" "
11
12 ax_logname_prompt_functions=($ax_logname_prompt_functions ax_logname_prompt_root)
13 ax_hostname_prompt_functions=($ax_hostname_prompt_functions ax_hostname_prompt_root)
14
15 # The primary prompt string, printed before a command is read.
16 PS1="$(ax_logname_prompt_yn)$(ax_hostname_prompt_yn)%B%2~%b"'$(ax_vcs_prompt)'"$(ax_prompt)"
17
18 # Primary prompt on the right-hand side.
19 axzsh_is_utf_terminal \
20         && RPS1="%(?..%{$fg_no_bold[red]%}%? ↵%{$reset_color%})" \
21         || RPS1="%(?..%{$fg_no_bold[red]%}<%?>%{$reset_color%})"
22
23 # Default execution trace prompt.
24 PS4="$fg_no_bold[yellow]->$reset_color "
25 # This prompt is compatible with sh(1) and bash(1), too, so export it!
26 export PS4