rupa / z

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

Document the `--add` argument #286

Open iandunn opened 4 years ago

iandunn commented 4 years ago

z --add {full path} can be used to manually add a folder to the dataset, but this isn't documented in the man page/README.

pabloab commented 1 year ago

I was searching how to add current directory. Solution: z --add $PWD.

rupa commented 1 year ago

if you're in $PWD it's already been added. hit enter to add it some more

doing z --add $PWD would just weight it twice, at best, and might probably litter a tmp file

pabloab commented 1 year ago

For some reason I get in and out of a dir several times (any dir), but it still doesn't get added (listed on z -l). The only way I could force adding it is by z --add $PWD.

I couldn't find which version of z I'm running. Nothing on z.sh, nor z --version/-v option (maybe this should be another issue?).

Lockszmith-GH commented 1 year ago

Can you please share how you are loading z.sh into your shell?

pabloab commented 1 year ago

On my .bashrc I have something like

if [ -f ~/Cloudfolder/.mybashrc ]; then
    . ~/Cloudfolder/.mybashrc
fi

And there (on .mybashrc) I added

source /home/pablo/Cloudfolder/bin/z.sh