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

Merge pull request #21 from TeddyDD/fish-completion

add fish completion for -i and -I options
This commit is contained in:
Linwei
2019-02-02 23:04:10 +08:00
committed by GitHub

2
z.lua
View File

@@ -1664,6 +1664,8 @@ end
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 'i' -d 'cd with interactive selection'
complete -c $_ZL_CMD -s 'I' -d 'cd with interactive selection using fzf'
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'
complete -c $_ZL_CMD -s 'c' -d 'restrict matches to subdirs of $PWD'