]> arthur.barton.de Git - ax-zsh.git/commitdiff
Don't include theme into the cache, only the "source" command
authorAlexander Barton <alex@barton.de>
Sun, 3 Feb 2019 22:18:41 +0000 (23:18 +0100)
committerAlexander Barton <alex@barton.de>
Sun, 3 Feb 2019 22:18:41 +0000 (23:18 +0100)
This was the case earlier on, before moving this logic into ax.zsh,
and is required by some more complex themes like Powerlevel9k (that
fail to find/include some other resource file otherwise ...).

ax.zsh

diff --git a/ax.zsh b/ax.zsh
index 4387f8d532416d623c154fcc53dcfe9fdeba8181..a13707bd0bb4fe83b7437c0549985a9264f10bf3 100644 (file)
--- a/ax.zsh
+++ b/ax.zsh
@@ -185,7 +185,7 @@ else
                        if [[ -n "$cache_file" ]]; then
                                # Include the theme into the new cache file:
                                echo "# BEGIN Theme" >>"$cache_file"
-                               "$cat_cmd" "$AXZSH_THEME" >>"$cache_file"
+                               echo 'source "$AXZSH_THEME"' >>"$cache_file"
                                echo "# END Theme" >>"$cache_file"
                        fi
                fi