From 028e27f2fa1c01e106755d4e0ad987b108ff5b0a Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Mon, 2 Nov 2015 15:32:10 +0100 Subject: [PATCH] Fix "theme" setup, rename "prompt" plugin to "theme" 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 | 4 ++++ default_plugins/prompt/prompt.zshrc | 6 ------ default_plugins/theme/theme.zshrc | 6 ++++++ 3 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 core/90_theme/90_theme.zshrc delete mode 100644 default_plugins/prompt/prompt.zshrc create mode 100644 default_plugins/theme/theme.zshrc diff --git a/core/90_theme/90_theme.zshrc b/core/90_theme/90_theme.zshrc new file mode 100644 index 0000000..72e7977 --- /dev/null +++ b/core/90_theme/90_theme.zshrc @@ -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 index 5911418..0000000 --- a/default_plugins/prompt/prompt.zshrc +++ /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 index 0000000..629b369 --- /dev/null +++ b/default_plugins/theme/theme.zshrc @@ -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" -- 2.39.2