From 86c97bd4c23dee7112612fb41180ab3f375c8b29 Mon Sep 17 00:00:00 2001 From: skywind3000 Date: Wed, 21 Nov 2018 15:42:12 +0800 Subject: [PATCH] commit new z.lua --- z.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/z.lua b/z.lua index eba4d1b..543c002 100644 --- a/z.lua +++ b/z.lua @@ -1174,7 +1174,7 @@ function z_shell_init(opts) print('') print(script_zlua) - if opts.bash ~= nil then + if opts.bash ~= nil or opts.busybox ~= nil then if os.getenv("_ZL_NO_PROMPT_COMMAND") == nil then if opts.fast == nil then print(script_init_bash) @@ -1182,7 +1182,9 @@ function z_shell_init(opts) print(script_init_bash_fast) end end - print(script_complete_bash) + if opts.bash ~= nil then + print(script_complete_bash) + end elseif opts.zsh ~= nil then if os.getenv("_ZL_NO_PROMPT_COMMAND") == nil then print(script_init_zsh)