From a63d1210f9cff8b489dc0b2620e3774998ba3f2e Mon Sep 17 00:00:00 2001 From: skywind3000 Date: Fri, 1 Feb 2019 21:08:56 +0800 Subject: [PATCH] fixed: fish shell completion setup parameters error and close https://github.com/skywind3000/z.lua/issues/16 --- z.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/z.lua b/z.lua index 9791b2f..6a5e9f5 100755 --- a/z.lua +++ b/z.lua @@ -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'