rupa / z

z - jump around
Do What The F*ck You Want To Public License
16.38k stars 1.17k forks source link

.z file not getting created #324

Open JoeIngle opened 1 year ago

JoeIngle commented 1 year ago

The .z database file isn't getting initialised on my machine. I can't work out why not.

I've put z.sh in my $HOME/.local/bin and sourced it in .bashrc, however, nothing happens when I navigate around in the shell and no .z file gets created at the default $HOME/.z location?

JoeIngle commented 1 year ago

Just to add to this, if I source z.sh directly from the terminal it then works, if I source it from within .bashrc it doesn't.

Lockszmith-GH commented 1 year ago

Not the maintainer, and not sure why, but here is how I would troubleshoot -

before your source it, run:

set -x

don't forget to add

set +x

What this will do, is show the output of every command afterwards. I would put an echo before and after, this should help you identify where things are going arye.

MadHatterENV commented 10 months ago

same issue here on fresh debian12 installation, bash v5.2.15-1, with starship prompt