]> arthur.barton.de Git - ax-zsh.git/blobdiff - core/90_theme/90_theme.zshrc
Include the theme into the global context
[ax-zsh.git] / core / 90_theme / 90_theme.zshrc
index 4c508fba672401bb7f914049f1ad99664ab5f356..140c73aa968d7fbd398897c6e9cbdb0c97713dbf 100644 (file)
@@ -5,14 +5,15 @@
 # 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
+       unset AXZSH_THEME
+
+       # Set simple prompt:
        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"
+# NOTE: The theme itself is read in by the ax.zsh script itself: last and into
+# the global context (code for the cache file is generated as required).