Skip to content

Commit cfad8f5

Browse files
author
skywind3000
committed
update doc
1 parent 501f619 commit cfad8f5

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,11 @@ z -b foo # cd to the parent directory starting with foo
137137

138138
- Windows WSL-1:
139139

140-
- Install `lua-filesystem` module.
141-
- Initialize z.lua as in Linux.
140+
Install `lua-filesystem` module before init z.lua:
141+
142+
sudo apt-get install lua-filesystem
143+
144+
This module is required due to a wsl-1 [defect](https://github.com/microsoft/WSL/issues/5505).
142145

143146

144147

z.lua

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#! /usr/bin/env lua
22
--=====================================================================
33
--
4-
-- z.lua - a cd command that learns, by skywind 2018, 2019, 2020
4+
-- z.lua - a cd command that learns, by skywind 2018, 2019, 2020, 2021
55
-- Licensed under MIT license.
66
--
7-
-- Version 1.8.12, Last Modified: 2020/12/31 02:05
7+
-- Version 1.8.12, Last Modified: 2021/02/15 00:05
88
--
99
-- * 10x faster than fasd and autojump, 3x faster than z.sh
1010
-- * available for posix shells: bash, zsh, sh, ash, dash, busybox
@@ -64,6 +64,10 @@
6464
-- * Add cmder/vendor to %PATH%
6565
-- * Ensure that "lua" can be called in %PATH%
6666
--
67+
-- Windows WSL-1:
68+
-- * Install lua-filesystem module before init z.lua:
69+
-- sudo apt-get install lua-filesystem
70+
--
6771
-- Configure (optional):
6872
-- set $_ZL_CMD in .bashrc/.zshrc to change the command (default z).
6973
-- set $_ZL_DATA in .bashrc/.zshrc to change the datafile (default ~/.zlua).
@@ -2744,4 +2748,5 @@ if not pcall(debug.getlocal, 4, 1) then
27442748
end
27452749
end
27462750

2751+
-- vim: set ts=4 sw=4 tw=0 noet :
27472752

0 commit comments

Comments
 (0)