From 831d617cefa0e5e660c5903039d08fe51a470d4e Mon Sep 17 00:00:00 2001 From: skywind3000 Date: Thu, 24 Dec 2020 15:27:48 +0800 Subject: [PATCH] improve clink 1.1 compatibility --- z.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/z.lua b/z.lua index 42e84e2..139a4c8 100755 --- a/z.lua +++ b/z.lua @@ -4,7 +4,7 @@ -- z.lua - a cd command that learns, by skywind 2018, 2019, 2020 -- Licensed under MIT license. -- --- Version 1.8.9, Last Modified: 2020/12/23 16:37 +-- Version 1.8.10, Last Modified: 2020/12/23 16:37 -- -- * 10x faster than fasd and autojump, 3x faster than z.sh -- * available for posix shells: bash, zsh, sh, ash, dash, busybox @@ -2081,7 +2081,8 @@ function z_clink_init() end local z_parser = clink.arg.new_parser() z_parser:set_arguments({ z_match_completion }) - z_parser:set_flags("-c", "-r", "-i", "--cd", "-e", "-b", "--add", "-x", "--purge", "--init", "-l", "-s", "--complete", "--help", "-h") + z_parser:set_flags("-c", "-r", "-i", "--cd", "-e", "-b", "--add", "-x", "--purge", + "--init", "-l", "-s", "--complete", "--help", "-h") clink.arg.register_parser("z", z_parser) end