1
0
mirror of https://github.com/skywind3000/z.lua synced 2026-03-23 08:09:49 +00:00

fish shell: set $_ZL_ECHO in global scope

This commit is contained in:
skywind3000
2020-02-10 19:26:22 +08:00
parent 097ca07ecd
commit bca25eba12
2 changed files with 3 additions and 2 deletions

View File

@@ -460,6 +460,7 @@ As you see, z.lua is the fastest one and requires less resource.
## History
- 1.8.4 (2020-02-10): fish shell: set `$_ZL_ECHO` to global scope.
- 1.8.3 (2020-02-09): new: `z -b -i` and `z -b -I` to jump backwards in interactive mode.
- 1.7.4 (2019-12-29): new: `$_ZL_HYPHEN` to treat hyphen as a normal character, see [here](https://github.com/skywind3000/z.lua/wiki/FAQ#how-to-input-a-hyphen---in-the-keyword-).
- 1.7.3 (2019-09-07): use [lua-filesystem](http://keplerproject.github.io/luafilesystem/) package if possible when `$_ZL_USE_LFS` is `1`.

4
z.lua
View File

@@ -4,7 +4,7 @@
-- z.lua - a cd command that learns, by skywind 2018, 2019, 2020
-- Licensed under MIT license.
--
-- Version 1.8.3, Last Modified: 2020/02/10 00:05
-- Version 1.8.4, Last Modified: 2020/02/10 19:22
--
-- * 10x faster than fasd and autojump, 3x faster than z.sh
-- * available for posix shells: bash, zsh, sh, ash, dash, busybox
@@ -2411,7 +2411,7 @@ function z_fish_init(opts)
print('set -x _ZL_MATCH_MODE 1')
end
if opts.echo then
print('set _ZL_ECHO 1')
print('set -g _ZL_ECHO 1')
end
if opts.nc then
print('set -x _ZL_NO_CHECK 1')