From d5fbe8990154088f679bd6d70a650a63fd4f1c8a Mon Sep 17 00:00:00 2001 From: laggardkernel Date: Tue, 4 Dec 2018 14:34:16 +0800 Subject: [PATCH 1/2] Fix variable ZSH 1. Variable ZSH is not needed by prezto at all. 2. Prezto shouldn't take variable ZSH, or oh-my-zsh.sh from oh-my-zsh will fail to be loaded. --- zgen.zsh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/zgen.zsh b/zgen.zsh index c5c4c1b..48200dd 100755 --- a/zgen.zsh +++ b/zgen.zsh @@ -316,11 +316,7 @@ zgen-apply() { } -zgen-get-zsh(){ - if [[ ${ZGEN_USE_PREZTO} == 1 ]]; then - -zgputs "$(-zgen-get-clone-dir "$ZGEN_PREZTO_REPO" "$ZGEN_PREZTO_BRANCH")" - else - -zgputs "$(-zgen-get-clone-dir "$ZGEN_OH_MY_ZSH_REPO" "$ZGEN_OH_MY_ZSH_BRANCH")" - fi + -zgputs "$(-zgen-get-clone-dir "$ZGEN_OH_MY_ZSH_REPO" "$ZGEN_OH_MY_ZSH_BRANCH")" } zgen-load() { From d0ee6d6cf5894cc86871b1e790e1e5597f6075ab Mon Sep 17 00:00:00 2001 From: laggardkernel Date: Tue, 4 Dec 2018 15:16:40 +0800 Subject: [PATCH 2/2] Instructions for loading priority `zgen prezto` should be written after `zgen oh-my-zsh` --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 1a22ff2..a7e29cf 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,8 @@ It's a good idea to load the base components before specifying any plugins. This will create a symlink in the `ZSHDOT` or `HOME` directory. This is needed by prezto. +**Note**: When `zgen prezto` is used with `zgen oh-my-zsh` together, `zgen prezto` should be **put behind** the other. Or prompt theme from prezto may not display as expected. + #### Load prezto plugins zgen prezto