Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
skywind3000 committed Feb 14, 2021
1 parent 501f619 commit cfad8f5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,11 @@ z -b foo # cd to the parent directory starting with foo

- Windows WSL-1:

- Install `lua-filesystem` module.
- Initialize z.lua as in Linux.
Install `lua-filesystem` module before init z.lua:

sudo apt-get install lua-filesystem

This module is required due to a wsl-1 [defect](https://github.com/microsoft/WSL/issues/5505).



Expand Down
9 changes: 7 additions & 2 deletions z.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#! /usr/bin/env lua
--=====================================================================
--
-- z.lua - a cd command that learns, by skywind 2018, 2019, 2020
-- z.lua - a cd command that learns, by skywind 2018, 2019, 2020, 2021
-- Licensed under MIT license.
--
-- Version 1.8.12, Last Modified: 2020/12/31 02:05
-- Version 1.8.12, Last Modified: 2021/02/15 00:05
--
-- * 10x faster than fasd and autojump, 3x faster than z.sh
-- * available for posix shells: bash, zsh, sh, ash, dash, busybox
Expand Down Expand Up @@ -64,6 +64,10 @@
-- * Add cmder/vendor to %PATH%
-- * Ensure that "lua" can be called in %PATH%
--
-- Windows WSL-1:
-- * Install lua-filesystem module before init z.lua:
-- sudo apt-get install lua-filesystem
--
-- Configure (optional):
-- set $_ZL_CMD in .bashrc/.zshrc to change the command (default z).
-- set $_ZL_DATA in .bashrc/.zshrc to change the datafile (default ~/.zlua).
Expand Down Expand Up @@ -2744,4 +2748,5 @@ if not pcall(debug.getlocal, 4, 1) then
end
end

-- vim: set ts=4 sw=4 tw=0 noet :

0 comments on commit cfad8f5

Please sign in to comment.