-
Notifications
You must be signed in to change notification settings - Fork 122
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
unexpected chpwd() calls from cd inside the command #32
Comments
I didn't write this feature, so I am not sure of a workaround, perhaps @zirrostig can shed some light? |
I entirely forgot about the zsh builtin hooks, A quick solution is to use |
zirrostig
pushed a commit
to zirrostig/k
that referenced
this issue
Feb 4, 2015
supercrabtree
added a commit
that referenced
this issue
Apr 28, 2015
Replaced cd with cd -q, to prevent chpwd hook from being called #32
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The new update is awesome! Thanks to all the contributors.
Everything is working fine, but when it lists directories, it shows what's inside too.
It's not that pretty, but it's working, so that is not that big of a deal.
But the concerning part is that it's occuring because I'm setting my own chpwd() to show the directory contents when moving into a directory. This means that the command will call chpwd() even when we didn't change working directory.
When we use this command, we are listing the directory contents, but not actually changing directories.
So changing directory inside a command, even if going back to the original directory, might cause unexpected things to happen.
I don't quite know how we can work it around though.
Are there any possible solutions for this?
The text was updated successfully, but these errors were encountered: