]> arthur.barton.de Git - ax-zsh.git/blobdiff - 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
index 72e7977b00790cec83544f240f26dc697859b9eb..4c508fba672401bb7f914049f1ad99664ab5f356 100644 (file)
@@ -1,4 +1,18 @@
 # AX-ZSH: Alex' Modular ZSH Configuration
 # 90_theme.zshrc: Load AX-ZSH theme
 
+# Don't load any "enhanced" theme on dumb terminals, but instead use a very
+# simple and sane built-in prompt that should work "everywhere". And try to
+# make sure that nothing else "disturbs" such terminals ...
+if axzsh_is_dumb_terminal; then
+       PS1="%n@%m:%3~ %# "
+       unset RPS1
+
+       # See <https://github.com/syl20bnr/spacemacs/issues/3035>
+       unset zle_bracketed_paste
+
+       return
+fi
+
+# Read in the theme configuration.
 [[ -n "$AXZSH_THEME" ]] && source "$AXZSH_THEME"