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

Document the --add argument #286

Open
iandunn opened this issue May 8, 2020 · 5 comments
Open

Document the --add argument #286

iandunn opened this issue May 8, 2020 · 5 comments

Comments

@iandunn
Copy link

iandunn commented May 8, 2020

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
Copy link

pabloab commented Aug 29, 2023

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

@rupa
Copy link
Owner

rupa commented Aug 29, 2023

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
Copy link

pabloab commented Aug 29, 2023

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
Copy link

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

@pabloab
Copy link

pabloab commented Aug 30, 2023

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

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