From d3e87a166f5136b1ac09cb360f15133cbdc2db86 Mon Sep 17 00:00:00 2001 From: skywind3000 Date: Fri, 23 Nov 2018 16:58:07 +0800 Subject: [PATCH] update z.lua --- z.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/z.lua b/z.lua index aeedb66..fd503d5 100644 --- a/z.lua +++ b/z.lua @@ -1272,16 +1272,22 @@ function z_shell_init(opts) print('if [ -n "$BASH_VERSION" ]; then') if prompt_hook then print(script_init_bash) + else + print('_ZL_DUMMY_SET=1') end print(script_complete_bash) print('elif [ -n "$ZSH_VERSION" ]; then') if prompt_hook then print(script_init_zsh) + else + print('_ZL_DUMMY_SET=1') end -- print(script_complete_zsh) print('else') if prompt_hook then print(script_init_posix) + else + print('_ZL_DUMMY_SET=1') end print('_ZL_NO_BUILTIN_CD=1') print('fi')