Define fzf as an option

This commit is contained in:
BarbUk committed 2019-02-05 20:21:45 +04:00
1 parent 69ad680b68
commit bc0403e5c7
1 file changed
+7 -1
+7 -1
View File
@@ -32,6 +32,10 @@
-- * put something like this in your .bashrc:
-- eval "$(lua /path/to/z.lua --init bash enhanced)"
--
-- Bash fzf tab completion Mode:
-- * put something like this in your .bashrc:
-- eval "$(lua /path/to/z.lua --init bash fzf)"
--
-- Zsh Install:
-- * put something like this in your .zshrc:
-- eval "$(lua /path/to/z.lua --init zsh)"
@@ -1925,7 +1929,9 @@ function z_shell_init(opts)
end
end
print(script_complete_bash)
print(script_fzf_complete_bash)
if opts.fzf ~= nil then
print(script_fzf_complete_bash)
end
elseif opts.zsh ~= nil then
if prompt_hook then
print(once and script_init_zsh_once or script_init_zsh)