mirror of
https://github.com/skywind3000/z.lua
synced 2026-03-14 11:49:48 +00:00
3944744e7da65e83202c072b075e99b15998ec71
z.lua
z - jump around (lua implementation for running on both unix & windows)
Licensed under MIT license.
Features
- 10x times faster than fasd and autojump
- 3x times faster than rupa/z
- supports posix shells: bash, zsh, dash, sh, busybox, and etc.
- supports Windows cmd (with clink) and cmder
Install
-
bash: put something like this in your
.bashrc: eval "$(lua /path/to/z.lua --init bash)" -
zsh: put something like this in your
.zshrc: eval "$(lua /path/to/z.lua --init zsh)" -
posix shells: put something like this in your
.profile: eval "$(lua /path/to/z.lua --init posix)" -
Windows (with clink): copy z.lua and z.cmd to clink's home directory Add clink's home to
%PATH%(z.cmd can be called anywhere) Ensure that "lua" can be called in%PATH% -
Windows Cmder Install: copy z.lua and z.cmd to cmder/vendor Add cmder/vendor to %PATH% Ensure that "lua" can be called in %PATH%
Customize
- set $_ZL_CMD in .bashrc/.zshrc to change the command (default z).
- set $_ZL_DATA in .bashrc/.zshrc to change the datafile (default ~/.zlua).
- set $_ZL_NO_PROMPT_COMMAND if you're handling PROMPT_COMMAND yourself.
- set $_ZL_EXCLUDE_DIRS to an array of directories to exclude.
Languages
Lua
90.9%
Python
4.1%
Shell
2.8%
Batchfile
2.2%