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

z.lua was missing some lines for z.cmd.

The auto-init for z.cmd was missing a couple of lines.  The HomeDir
line, in particular, is important because it enables Lua to find the
z.lua script.
This commit is contained in:
Chris Antos
2023-05-17 10:48:05 -07:00
parent 6fe677aae4
commit dff016528c

2
z.lua
View File

@@ -2703,6 +2703,8 @@ function z_windows_init(opts)
else
print('@echo off')
print('setlocal EnableDelayedExpansion')
print('set "HomeDir=%~dp0"') -- So that Lua can find the z.lua file.
print('set "PathSave=%PATH%"')
print('set "LuaExe=' .. os.interpreter() .. '"')
print('set "LuaScript=' .. os.scriptname() .. '"')
print(script_init_cmd)