diff --git a/README.cn.md b/README.cn.md index 493e680..0f47794 100644 --- a/README.cn.md +++ b/README.cn.md @@ -14,7 +14,7 @@ z.lua 是一个快速路径切换工具,它会跟踪你在 shell 下访问过 - 性能比 **z.sh** 快三倍,比 **fasd** / **autojump** 快十倍以上。 - 支持 Posix Shell:bash, zsh, dash, sh, ash, busybox 等等。 -- 支持 Fish Shell,Power Shell 和 Windows cmd。 +- 支持 Fish Shell,Nushell, Power Shell 和 Windows cmd。 - 使用增强匹配算法,更准确的带你去到你想去的地方。 - 低占用,能够仅在当前路径改变时才更新数据库(将 `$_ZL_ADD_ONCE` 设成 1)。 - 交互选择模式,如果有多个匹配结果的话,跳转前允许你进行选择。 @@ -93,7 +93,6 @@ z -b foo # 跳转到父目录中名称以 foo 开头的那一级 然后在 `config.nu` 中加入如下代码: source ~/.cache/zlua.nu - alias z = _zlua - Power Shell: diff --git a/README.md b/README.md index ff078fb..086b89f 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ From people using z.lua: - **10x** times faster than **fasd** and **autojump**, **3x** times faster than **z.sh**. - Gain the ultimate speed with an optional [native module](https://github.com/skywind3000/czmod) written in C. - Available for **posix shells**: bash, zsh, dash, sh, ash, ksh, busybox and etc. -- Available for Fish Shell, Power Shell and Windows cmd. +- Available for Fish Shell, Nushell, Power Shell and Windows cmd. - [Enhanced matching algorithm](#enhanced-matching) takes you to where ever you want precisely. - Allow updating database only if `$PWD` changed with "$_ZL_ADD_ONCE" set to 1. - Interactive selection enables you to choose where to go before cd. @@ -122,8 +122,11 @@ z -b foo bar # replace foo with bar in cwd and cd there Put something like this in your `env.nu`: - mkdir ($nu.data-dir | path join "vendor/autoload") - lua /path/to/z.lua --init nushell | save -f ($nu.data-dir | path join "vendor/autoload/zlua.nu") + lua /path/to/z.lua --init nushell | save -f ~/.cache/zlua.nu + + Then put something like this in your `config.nu`: + + source ~/.cache/zlua.nu Note: Only Nushell v0.96+ is supported