Skip to content
Linwei edited this page Feb 17, 2019 · 35 revisions

fz.sh for better completion

fz is a bash/zsh plugin that seamlessly adds fuzzy search to tab completion of z.sh. z.lua can work with it for better completion result, just define a _z function and pass all the arguments to _zlua before sourcing fz.sh:

function _z() { _zlua "$@"; }
source /path/to/fz.sh

After that, you can source fz.sh in your shell rc. If you are using zsh with antigen, initialize them like this:

antigen boundle skywind3000/z.lua
antigen boundle changyuheng/fz

function _z() { _zlua "$@"; }
Clone this wiki locally