]> arthur.barton.de Git - ax-zsh.git/blob - core/90_theme/90_theme.zshrc
Don't load themes and ext. plugins on "dumb" terminals
[ax-zsh.git] / core / 90_theme / 90_theme.zshrc
1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # 90_theme.zshrc: Load AX-ZSH theme
3
4 # Don't load any "enhanced" theme on dumb terminals, but instead use a very
5 # simple and sane built-in prompt that should work "everywhere". And try to
6 # make sure that nothing else "disturbs" such terminals ...
7 if axzsh_is_dumb_terminal; then
8         PS1="%n@%m:%3~ %# "
9         unset RPS1
10
11         # See <https://github.com/syl20bnr/spacemacs/issues/3035>
12         unset zle_bracketed_paste
13
14         return
15 fi
16
17 # Read in the theme configuration.
18 [[ -n "$AXZSH_THEME" ]] && source "$AXZSH_THEME"