-
Notifications
You must be signed in to change notification settings - Fork 147
Clink changes #181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clink changes #181
Conversation
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.
- Added description strings for the flags. - Added dir completions for the `-x` flag.
thanks |
I have a question about "HomeDir" environment variable, in this line: Line 2727 in 4d89b55
the absolute path name of Line 2572 in 4d89b55
why do we still need the "HomeDir" to tell lua how to find I am trying to google "HomeDir" + "Lua" , but can't find anything, it is supported by lua interpreter right ? Is there any other side-effect if we change it ? |
@skywind3000 You're right; currently, those two lines don't do anything. I was trying to make Why does z.cmd have these 4 lines, but the z.cmd generated by Would it be reasonable to make Or are they intentionally different? Is the intent to normally use the z.cmd from the repo, and to only use |
The generated version is designed to be more robust,
every generated init code (including bash, zsh, fish and powershell) uses To keep consistency, the generated cmd code should not be an opposite sample. But, for convenience and portability, I provide a separated batch, it will try to find For example, the two files can be compressed in an zip file, and extracted to where ever you want, just keep That's why I put a separated |
Lines 4 to 7 in 4d89b55
Here we can see, So |
@skywind3000 I'll make another PR to back out the two lines from the Are you asking me to also edit the provided z.cmd file to remove line 4 and replace the Also, is the |
Since we have the agreement about how to modify the batch file. Right now, I have time and I made the patch: |
Awesome, thanks for asking the question, and for cleaning it up! |
Hi, I'm the maintainer for clink.
I'd like to update z.lua with the following:
HomeDir
environment variable so the Lua engine can find the z.lua script.-x
flag.