Skip to content
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

z foo cmd not working #194

Open
prabanjanraja opened this issue Dec 4, 2023 · 12 comments
Open

z foo cmd not working #194

prabanjanraja opened this issue Dec 4, 2023 · 12 comments

Comments

@prabanjanraja
Copy link

I tried installing z.lua in windows cmd with clink
I followed all the three steps mentioned in the readme but when i enter z foo the directory does not changes, it just stays in the same directory withou any errors
any idea on why is it like that?

@skywind3000
Copy link
Owner

It needs study your cd history. just cd around in clink for a while then use z.lua again.

@prabanjanraja
Copy link
Author

in clink we don't have use cd we can just add a trailing \ to the directory name
so will it also work for that?
I tried to move around 2 directories just once, and then tried the z cmd
ideally how long does it takes

@skywind3000
Copy link
Owner

z.lua will track your path changes in real-time, the more it studies the more it becomes handy.

@prabanjanraja
Copy link
Author

it seems to be not working for me
i moved between two directories a half a dozen times today, but still the z command does not work, the directory doesn't changes and I don't see an error mssg either
the powershell module recognized the path just after the first time I moved into it

@skywind3000
Copy link
Owner

please check z.lua's datafile ~/.zlua, does it contain something you visited in clink ?

@prabanjanraja
Copy link
Author

I can't find the .zlua in my C: drive
the z -h cmd works but z --help does not
I have placed the z.lua and z.cmd file in "C:\Program Files (x86)\clink" in my 64bit windows machine

@prabanjanraja
Copy link
Author

@skywind3000 can you help?

@skywind3000
Copy link
Owner

On windows, .zlua database is located in C:\Users\XXX\.zlua by default

@prabanjanraja
Copy link
Author

prabanjanraja commented Dec 12, 2023

@skywind3000
can't find tfe file in my users directory
I even tried creating the file still is empty also tried in administrator cmd still the same

@prabanjanraja
Copy link
Author

@skywind3000
any update on this issue?

@ilyagr
Copy link
Contributor

ilyagr commented Feb 20, 2024

You could attempt to debug this yourself. Try inserting some print() (or actually io.stderr:write) statements into the z.lua script around

z.lua/z.lua

Line 1071 in 3022099

local fp = io.open(os.path.expand(filename), 'r')
to see which files it's loading the data from.

@maestroww
Copy link

我遇到同样问题,删除c版的clink ,重新安装c++版本clink(https://github.com/chrisant996/clink) 后问题得到解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants