Closed zhuzy-2018 closed 7 months ago
If some command in your .zshrc
does not work with instant prompt, move it to the top of the file. See https://github.com/romkatv/powerlevel10k#how-do-i-configure-instant-prompt or https://github.com/romkatv/zsh-bench#instant-prompt for details.
another strange thing is source /opt/ros/noetic/setup.zsh in function sourceROS1 seems work, however source /datadisk/slam_learn_ws/devel/setup.zsh in the same function didn't work. And if I write it out of the function it works again.
What happens if you disable powerlevel10k? Does that help?
you mean disable p10k instant prompt? yes disable it will make every source action work.
---- Replied Message ---- | From | Roman @.> | | Date | 11/20/2023 16:38 | | To | @.> | | Cc | @.>@.> | | Subject | Re: [romkatv/powerlevel10k] some source is not working when I enable instant prompt (Issue #2488) |
If some command in your .zshrc does not work with instant prompt, move it to the top of the file. See https://github.com/romkatv/powerlevel10k#how-do-i-configure-instant-prompt or https://github.com/romkatv/zsh-bench#instant-prompt for details.
another strange thing is source /opt/ros/noetic/setup.zsh in function sourceROS1 seems work, however source /datadisk/slam_learn_ws/devel/setup.zsh in the same function didn't work. And if I write it out of the function it works again.
What happens if you disable powerlevel10k? Does that help?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
My response has two parts. The second part answers the question of yours that I quoted.
If some command in your
.zshrc
does not work with instant prompt, move it to the top of the file. See https://github.com/romkatv/powerlevel10k#how-do-i-configure-instant-prompt or https://github.com/romkatv/zsh-bench#instant-prompt for details.another strange thing is source /opt/ros/noetic/setup.zsh in function sourceROS1 seems work, however source /datadisk/slam_learn_ws/devel/setup.zsh in the same function didn't work. And if I write it out of the function it works again.
What happens if you disable powerlevel10k? Does that help?
YES! change the theme does help. But I'd like to use p10k as my theme ,what should I do?
what should I do?
Please see my first comment and try doing what it says.
what should I do?
Please see my first comment and try doing what it says.
I'm sorry, my thinking was a bit rigid. However, thank you very much. I have completely resolved this issue!
some of my source action is not working when I enable instrant prompt, such like, source /etc/grc.zsh and source setup.zsh of ros in a function.
Strangely, source works when I source .zshrc in the terminal.
below is my .zshrc
another strange thing is source /opt/ros/noetic/setup.zsh in function sourceROS1 seems work, however source /datadisk/slam_learn_ws/devel/setup.zsh in the same function didn't work. And if I write it out of the function it works again.