Skip to content

Commit

Permalink
improve clink 1.1 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
skywind3000 committed Dec 24, 2020
1 parent 97fa941 commit 831d617
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions z.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 831d617

Please sign in to comment.