1
0
mirror of https://github.com/skywind3000/z.lua synced 2026-03-25 09:09:48 +00:00

fixed: fish shell completion setup parameters error and

close https://github.com/skywind3000/z.lua/issues/16
This commit is contained in:
skywind3000
2019-02-01 21:08:56 +08:00
parent b34d22bc21
commit a63d1210f9

4
z.lua
View File

@@ -4,7 +4,7 @@
-- z.lua - z.sh implementation in lua, by skywind 2018, 2019
-- Licensed under MIT license.
--
-- Version 43, Last Modified: 2019/02/01 19:22
-- Version 45, Last Modified: 2019/02/01 21:07
--
-- * 10x times faster than fasd and autojump
-- * 3x times faster than rupa/z
@@ -1584,7 +1584,7 @@ function _z_complete
eval "$_ZL_CMD" --complete (commandline -t)
end
complete -c $_ZL_CMD -a '(_z_complete)'
complete -c $_ZL_CMD -f -a '(_z_complete)'
complete -c $_ZL_CMD -s 'r' -d 'cd to highest ranked dir matching'
complete -c $_ZL_CMD -s 't' -d 'cd to most recently accessed dir matching'
complete -c $_ZL_CMD -s 'l' -d 'list matches instead of cd'