]> arthur.barton.de Git - ax-zsh.git/commitdiff
Fix "theme" setup, rename "prompt" plugin to "theme"
authorAlexander Barton <alex@barton.de>
Mon, 2 Nov 2015 14:32:10 +0000 (15:32 +0100)
committerAlexander Barton <alex@barton.de>
Mon, 2 Nov 2015 14:32:10 +0000 (15:32 +0100)
This fixes commit 07055eae "50_prompt: Don't export PS{1...4} and
RPS{1|2} any more", which moved prompt initialization from "zlogin"
stage to "zshrc" stage.

core/90_theme/90_theme.zshrc [new file with mode: 0644]
default_plugins/prompt/prompt.zshrc [deleted file]
default_plugins/theme/theme.zshrc [new file with mode: 0644]

diff --git a/core/90_theme/90_theme.zshrc b/core/90_theme/90_theme.zshrc
new file mode 100644 (file)
index 0000000..72e7977
--- /dev/null
@@ -0,0 +1,4 @@
+# AX-ZSH: Alex' Modular ZSH Configuration
+# 90_theme.zshrc: Load AX-ZSH theme
+
+[[ -n "$AXZSH_THEME" ]] && source "$AXZSH_THEME"
diff --git a/default_plugins/prompt/prompt.zshrc b/default_plugins/prompt/prompt.zshrc
deleted file mode 100644 (file)
index 5911418..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-# AX-ZSH: Alex' Modular ZSH Configuration
-# prompt.zlogin: Setup default prompts
-
-[[ -r "$AXZSH/active_theme" ]] \
-       && source "$AXZSH/active_theme" \
-       || source "$AXZSH/themes/ax.axzshtheme"
diff --git a/default_plugins/theme/theme.zshrc b/default_plugins/theme/theme.zshrc
new file mode 100644 (file)
index 0000000..629b369
--- /dev/null
@@ -0,0 +1,6 @@
+# AX-ZSH: Alex' Modular ZSH Configuration
+# theme.zshrc: Setup AX-ZSH theme
+
+[[ -r "$AXZSH/active_theme" ]] \
+       && AXZSH_THEME="$AXZSH/active_theme" \
+       || AXZSH_THEME="$AXZSH/themes/ax.axzshtheme"