1
0
mirror of https://github.com/skywind3000/z.lua synced 2026-07-03 11:12:44 +00:00

[+] _ZL_RANDOM

[=] change default _ZL_CMD to z
[=] fix -h
This commit is contained in:
manhong2112
2019-02-03 15:13:02 +08:00
parent d0b1df5a01
commit bfabcee4dd
+9 -2
View File
@@ -1805,7 +1805,10 @@ function Init-ZLua {
$env:_ZL_CD = "Push-Location"
}
if (!$env:_ZL_CMD) {
$env:_ZL_CMD = "j"
$env:_ZL_CMD = "z"
}
if (!$env:_ZL_RANDOM) {
$env:_ZL_RANDOM = Get-Random
}
function global:_zlua {
@@ -1865,7 +1868,10 @@ function Init-ZLua {
$arg_inter="-I"
break
}
"-h" {}
"-h" {
$arg_mode="-h"
break
}
"--help" {
$arg_mode="-h"
break
@@ -1913,6 +1919,7 @@ function Init-ZLua {
}
Init-ZLua
]]
-----------------------------------------------------------------------