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

expose '--add' in cmd.exe

This commit is contained in:
skywind3000
2020-10-31 18:59:03 +08:00
parent 9fb8cadda3
commit c90279b677
2 changed files with 12 additions and 1 deletions

6
z.cmd
View File

@@ -54,6 +54,12 @@ if /i "%1"=="-x" (
goto parse
)
if /i "%1"=="--add" (
set "RunMode=--add"
shift /1
goto parse
)
if "%1"=="-i" (
set "InterMode=-i"
shift /1

7
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.7, Last Modified: 2020/06/29 18:04
-- Version 1.8.8, Last Modified: 2020/10/31 18:58
--
-- * 10x faster than fasd and autojump, 3x faster than z.sh
-- * available for posix shells: bash, zsh, sh, ash, dash, busybox
@@ -2502,6 +2502,11 @@ if /i "%1"=="-x" (
shift /1
goto parse
)
if /i "%1"=="--add" (
set "RunMode=--add"
shift /1
goto parse
)
if "%1"=="-i" (
set "InterMode=-i"
shift /1