-
Notifications
You must be signed in to change notification settings - Fork 700
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
j doesn't always auto-complete w/zsh 4.3.10 #13
Comments
Just verified that even with all those commented out, the problem still occurs (without the "No matches:" warning). |
I'd love to help you out, but I use bash myself and zsh completion works perfectly on all of my machines... Is autojump the only application that has a problem? What distro are you using? Can you try using autojump on a fresh user account to see if one of your customizations could be the problem? |
Hmm.. I'm on Mac OS X 10.5.8 (can't upgrade to 10.6 yet), with zsh 4.3.10 from MacPorts. I tried using the built-in 4.3.4, got the same results, even after deleting all my customizations and blowing away the autojump directory. I just tried creating a new account that uses /bin/bash (3.2.17(1)-release (i386-apple-darwin9.0)), but install.sh says: grep: /Users/jaytest/.bash_profile: No such file or directory I did, in fact, touch an empty .bash_profile but that didn't change the error message. How can I troubleshoot? |
Well, ignoring the bash installer bug, I think I figured out the zsh problem. With zsh 4.3.10:
install.zsh puts
and install.zsh doesn't check the error! I'd recommend that install.zsh make the directory if required, or at least spit out an error when it isn't found. I manually created site-functions, put _j in there, and all is now well on the zsh side. |
Could you provide a patch for the zsh installer? I could probably do it, but since I don't use zsh, there's a significant probability that I would mess up :) About the bash installer, I guess the problem is in a patch from another guy I merged in recently. But I can't reproduce the problem on my computer... |
Ok, I think I've solved the problem. What do you think of the solution? http://github.com/joelthelion/autojump/commit/512db419e1470af77c544ecbedad5dae9221ddda |
Ok, I'm considering the issue to be closed. Don't hesitate to reopen if that is not the case! |
I can't quite figure out the pattern, but typing "j partofpath" doesn't usually autocomplete for me. For example:
I do have a few dozen completion-related lines in my .zshrc.d; autojump.zsh executes after these. (I tried commenting them all out, but then completion didn't work at all, and I don't remember enough zsh to recreate a normal environment.)
The text was updated successfully, but these errors were encountered: