-
Notifications
You must be signed in to change notification settings - Fork 14
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
Prompt expects external undocumented git_prompt_* functions #2
Comments
Thanks for the report! I will look into a possible fix, or failing that I'll at least document the incompatibility. |
After looking into it, I can see that For now I will update the README with a note about it. Thanks again, this should help some others out if they're installing on a fresh copy of ZSH (without Oh My ZSH or another framework that happens to also include the lib). Feel free to send me a PR updating the README with information on what you had to install to work around it, I'd appreciate that. |
Oh no of course you shouldn't add a copy! As you said I was just thinking about adding a note to the README with some prerequisites. I can send a PR 👍 |
My bad, you did already in 6837073. I don't think it's necessary to add more information, people should either use a framework (one the these referenced at the end of the README) or copy the module from one of these frameworks. |
Here are some quick instructions on getting it to work. This was tested with a stock zsh 5.2 installation with only purity prompt installed on a Macbook Pro.
|
@danarnold a more idiomatic way is to simply add it to your Actually it would be even better if @therealklanni could add these |
Yeah, I think it makes sense to bundle it with the prompt, since it's a hard dependency that will throw errors if not installed. I had tried to get it working in my fpath after a quick Google search, but I saw someone on StackOverflow claiming that in order to be loaded with autoload, each function should live in its own file; however, the functions above are all written in a single file. I admittedly didn't test both situations, I just got it working as quick as I could. I'll give that a shot later, thanks for the more idiomatic way; I'm not normally a zsh user. |
Ah, fair point regarding the autoload built-in! So to make it short it works only with Oh-My-Zsh unless one does the manipulation you explained. Sad :( |
Thanks for the input, guys! Admittedly, I'm not that experienced with ZSH customization, I just made some minor changes to the Pure theme from Sindre Sorhus. If you guys (or anyone) comes up with a good solution, I will be happy to implement it, or accept a PR. 🤘 |
For now, I will leave the README as is, since I linked it to this thread already people can see your great solutions here if they need it. |
I found a fairly simple solution for
The first line loads oh-my-zsh base modules, which includes the functionality the theme requires. |
Thanks for posting, @manvithn. I hope this is helpful for others. :) |
I was trying to use this prompt on a fresh setup (zsh 5.3.1), but without pulling a module which includes
git_prompt_info
andgit_prompt_status
the following errors are thrown:Zsh doesn't include such a module by default, neither do frameworks like Zim. Maybe it would be a good idea to document that?
and thanks for the great fork!
The text was updated successfully, but these errors were encountered: