skywind3000/z.lua

z foo cmd not working

prabanjanraja opened this issue · 12 comments

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?

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

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

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

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

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

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

@skywind3000 can you help?

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

@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

@skywind3000
any update on this issue?

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.