mirror of
https://github.com/skywind3000/z.lua
synced 2026-03-22 15:49:47 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0fad96124b | ||
|
|
465f2b8e62 | ||
|
|
ff9d874ef4 |
@@ -458,7 +458,8 @@ As you see, z.lua is the fastest one and requires less resource.
|
||||
|
||||
## History
|
||||
|
||||
- 1.7.0 (2019-03-09): Support ranger, fix ReplaceFile issue in luajit (windows).
|
||||
- 1.7.1 (2019-06-07): Fixed: `$_ZL_DATA` failure on Linux sometimes.
|
||||
- 1.7.0 (2019-03-09): Support [ranger](https://github.com/skywind3000/z.lua/wiki/FAQ#how-to-integrate-zlua-to-ranger-), fix ReplaceFile issue in luajit (windows).
|
||||
- 1.6.0 (2019-03-04): optimize with ffi module (luajit builtin module).
|
||||
- 1.5.11 (2019-03-02): fixed: os.path.isdir doesn't work for symbol link folders.
|
||||
- 1.5.10 (2019-03-01): Prevent writing file racing.
|
||||
|
||||
9
z.lua
9
z.lua
@@ -4,7 +4,7 @@
|
||||
-- z.lua - a cd command that learns, by skywind 2018, 2019
|
||||
-- Licensed under MIT license.
|
||||
--
|
||||
-- Version 1.7.0, Last Modified: 2019/03/09 16:51
|
||||
-- Version 1.7.1, Last Modified: 2019/06/07 22:07
|
||||
--
|
||||
-- * 10x faster than fasd and autojump, 3x faster than z.sh
|
||||
-- * available for posix shells: bash, zsh, sh, ash, dash, busybox
|
||||
@@ -1869,11 +1869,8 @@ function z_init()
|
||||
DATA_FILE = _zl_data
|
||||
else
|
||||
-- avoid windows environments affect cygwin & msys
|
||||
if _zl_data:sub(2, 2) ~= ':' then
|
||||
local t = _zl_data:sub(3, 3)
|
||||
if t ~= '/' and t ~= "\\" then
|
||||
DATA_FILE = _zl_data
|
||||
end
|
||||
if not string.match(_zl_data, '^%a:[/\\]') then
|
||||
DATA_FILE = _zl_data
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user