Skip to content

Commit bca25eb

Browse files
author
skywind3000
committed
fish shell: set $_ZL_ECHO in global scope
1 parent 097ca07 commit bca25eb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,7 @@ As you see, z.lua is the fastest one and requires less resource.
460460

461461
## History
462462

463+
- 1.8.4 (2020-02-10): fish shell: set `$_ZL_ECHO` to global scope.
463464
- 1.8.3 (2020-02-09): new: `z -b -i` and `z -b -I` to jump backwards in interactive mode.
464465
- 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-).
465466
- 1.7.3 (2019-09-07): use [lua-filesystem](http://keplerproject.github.io/luafilesystem/) package if possible when `$_ZL_USE_LFS` is `1`.

z.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
-- z.lua - a cd command that learns, by skywind 2018, 2019, 2020
55
-- Licensed under MIT license.
66
--
7-
-- Version 1.8.3, Last Modified: 2020/02/10 00:05
7+
-- Version 1.8.4, Last Modified: 2020/02/10 19:22
88
--
99
-- * 10x faster than fasd and autojump, 3x faster than z.sh
1010
-- * available for posix shells: bash, zsh, sh, ash, dash, busybox
@@ -2411,7 +2411,7 @@ function z_fish_init(opts)
24112411
print('set -x _ZL_MATCH_MODE 1')
24122412
end
24132413
if opts.echo then
2414-
print('set _ZL_ECHO 1')
2414+
print('set -g _ZL_ECHO 1')
24152415
end
24162416
if opts.nc then
24172417
print('set -x _ZL_NO_CHECK 1')

0 commit comments

Comments
 (0)