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 not playing nice with .ruby-gemset, .ruby-version files. #291

Open
orehmane opened this issue Jul 12, 2020 · 2 comments
Open

z not playing nice with .ruby-gemset, .ruby-version files. #291

orehmane opened this issue Jul 12, 2020 · 2 comments

Comments

@orehmane
Copy link

Strangely, if I z into my directory, it doesn't seem to run whatever hooks set up the Ruby gemset. If, in the same directory, I run cd ., it runs them correctly and all is well. Is there some hook or trigger that isn't run when you z instead of cd, or have I misconfigured something?

I appreciate your time and effort in making this wonderful utility.

@echo-bravo-yahoo
Copy link

echo-bravo-yahoo commented Mar 25, 2024

Just chiming in that this also applies to nvm using .nvmrc files as well (source code for the zsh integration here). With zsh fully setup (e.g., after sourcing all profiles, etc.), builtin cd $DIR_WITH_NVMRC fires the after hooks correctly, so I don't think that z's use of builtin cd is the issue. Not sure why z doesn't fire the nvm integration hooks but cd does.

@jaseemabid
Copy link

Just noticed that z doesn't work with https://github.com/hyperupcall/autoenv hooks as well, I need a cd . after z.

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

3 participants