-
Notifications
You must be signed in to change notification settings - Fork 27
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
Use powerlevel10k instant prompt with zim+ #11
Conversation
@romkatv, you might want to update the README.md accordingly. Also, regarding the README.md, the information about Zim being optimized on the |
Zim does play well with powerlevel10k instant prompt. It also "has one function to install plugins and another to load them", contratry to what the zsh-bench README.md mentions.
Thanks! Merged.
Of course. Will do that tomorrow or the day after.
Ditto. |
… zim now uses a meaningful performance metric instead of 'exit' (#11)
I've updated the readme. I've also tried to change zim+ config so that it prints a notification when zim is installing something. I think it's bad UX when network IO -- which can take arbitrary long -- is done while the screen is empty. What's the right way to do that? I tried removing source $ZIM_HOME/zimfw.zsh install |
grep -vF 'Done with install. Restart your terminal for any changes to take effect.' Is there a better way? |
This is the output I get with
I agree the "Restart your terminal for any changes to take effect." does not make sense here. And the info on the build of the scripts may be too much information. I'll fix this in the next release. |
What's the difference between |
EDIT: I'll add |
So |
The way the Zim startup is intended to work is:
The recompile happens independently, because we also want to recompile after some module was updated, or after the user changed some of its scripts manually. Not sure if recompiling the scripts in .zshrc (using zimfw |
Using |
Only when installing. It's fine. Besides, fetching data from the internet is much slower than compiling, so there is barely any difference. I think I'll keep What follows is unsolicited feedback that's probably 50% misguided. Feel free to ignore at will. The background process corrupts files in several cases. Here are a few examples:
The right solution is to not use the background process. It doesn't even improve performance, it only makes things brittle. I think the overall effect on performance is negative 0.5ms. That is, it makes things slightly slower. As far as compiling goes, here's the way (IMO):
|
Lots of valuable feedback in there, thanks a lot! I'll experiment with it. It's even better to do experiments now that we have a more reliable benchmark in Zim too. At the end, I might change |
Changes are: * Don't compile in the background anymore, only via the `zimfw` tool after actions where scripts can change (install, update, etc.) * Don't compile users startup scripts anymore (.zshenv, .zshrc, etc.) * Make output of `zimfw init` friendlier for the terminal startup screen when called without `-q`. See romkatv/zsh-bench#11 (comment)
Changes are: * Don't compile in the background anymore, only via the `zimfw` tool after actions where scripts can change (build, install, update) * Move compilation of the completion dumpfile to the completion module: https://github.com/zimfw/completion/blob/9386a76eac3f55b1c04d57d26238f725b4b3ba25/init.zsh#L10-L11 * Don't compile users startup scripts anymore (.zshenv, .zshrc, etc.) * Make output of `zimfw init` friendlier for the terminal startup screen when called without `-q`. See romkatv/zsh-bench#11 (comment) and https://github.com/romkatv/zsh-bench#cutting-corners Regarding not compiling users startup scripts anymore, I'm choosing to only compile the modules' scripts at least for the reason that compile won't happen so ofter anymore -- it will only happen when the user calls the `zimfw` build, install or update actions. So it makes more sense to only compile the files that `zimfw` has control over changes... Closes #450
Changes are: * Don't compile in the background anymore, only via the `zimfw` tool after actions where scripts can change (build, install, update) * Move compilation of the completion dumpfile to the completion module: https://github.com/zimfw/completion/blob/9386a76eac3f55b1c04d57d26238f725b4b3ba25/init.zsh#L10-L11 * Don't compile users startup scripts anymore (.zshenv, .zshrc, etc.) * Make output of `zimfw init` friendlier for the terminal startup screen when called without `-q`. See romkatv/zsh-bench#11 (comment) and https://github.com/romkatv/zsh-bench#cutting-corners Regarding not compiling users startup scripts anymore, I'm choosing to only compile the modules' scripts at least for the reason that compile won't happen so ofter anymore -- it will only happen when the user calls the `zimfw` build, install or update actions. So it makes more sense to only compile the files that `zimfw` has control over changes... Closes #450
Zim does play well with powerlevel10k instant prompt. It also "has one function to install plugins and another to load them", contratry to what the zsh-bench README.md mentions.