Home

Awesome

Preface

z.lua is fast enough for most cases, the path tracking action will be triggered each time when you change your current directory.

So I still recommend the pure lua script for portability and flexibility, but for someone who really cares about very high performance, this module can be helpful.

Features

Install

Install musl-gcc

sudo apt-get install musl-tools

Build the binary

git clone https://github.com/skywind3000/czmod.git ~/github/czmod
cd ~/github/czmod
sh build.sh

Enable Czmod

czmod must be initialized after z.lua:

bash:

eval "$(lua ~/github/z.lua/z.lua --init bash enhanced once echo)"
source ~/github/czmod/czmod.bash

zsh:

eval "$(lua ~/github/z.lua/z.lua --init zsh enhanced once echo)"
source ~/github/czmod/czmod.zsh

Benchmark

Average performance:

Nameczmodz.lua
Update Time1.6ms13.2ms
Query Time1.5ms9.8ms

Credit

TODO