Theme conversion methodology or instructions? #511
Replies: 3 comments 1 reply
-
There might be modifications needed for themes that use functionalities specific to ohmyzsh, but an example can be found here: #472 (comment) Use the |
Beta Was this translation helpful? Give feedback.
-
Hi @ylluminate. The main conversion you'll need to do for an ohmyzsh theme to Zim is how git information is handled. Ohmyzsh configures that via the ZSH_THEME_GIT_PROMPT_* environment variables, and Zim uses zstyle to set up our git-info module. Also some other prompt information is handled differently, like how to display the Python venv information. To start understanding how themes are written, so you can rewrite one, check this comment. You can use the ohmyzsh prompt directly as @antoineco mentioned. Add this to your .zimrc:
EDIT: You'll also need to add:
to the beginning of your .zshrc file. You can see ohmyzsh is not exactly modular. This was one of the aspects that @sorin-ionescu improved in Prezto and that we also took as inspiration for Zim. |
Beta Was this translation helpful? Give feedback.
-
Here's the bira theme rewritten for Zim:
What was removed: showing rvm and hg (mercurial) information. I might just upload this as a new module in Zim... Need to add documentation and the LICENSE. |
Beta Was this translation helpful? Give feedback.
-
I'd like to use the Bira theme (or perhaps something similar) with Zim. Are there any direct paths to do this or discussions of how to go about converting themes that I'm missing?
Beta Was this translation helpful? Give feedback.
All reactions