Replies: 7 comments 6 replies
-
If I may ask a quick follow up question... more than anything to ensure I haven't opened a can of worms. I'm curious why antidote doesn't I am sourcing this manually before |
Beta Was this translation helpful? Give feedback.
-
Hey @blogabe! Thank you for the kind words and for using antidote. Glad you've found it to be helpful! I too am a long time Prezto user, and probably wouldn't know what to do without plugins like In response to your comments about prompts, might I humbly suggest using the prompt system from Zephyr? You can get access to all sorts of great prompts with it by simply adding something like this to your Zsh config: # antidote's .zsh_plugins.txt
# Use the 'kind:fpath' annotation to make these prompts available
# to the builtin Zsh prompt system, but no need to actually load them unless you choose them.
# Doing this will not slow down your config.
sindresorhus/pure kind:fpath
romkatv/powerlevel10k kind:fpath
spaceship-prompt/spaceship-prompt kind:fpath
# Now, load an actual prompt plugin to set your prompt
# To set your prompt, add the following zstyle to your .zshrc:
# zstyle ':zephyr:plugin:prompt' theme 'zephyr'
# Valid values are zephyr, starship, spaceship, powerlevel10k, pure, or other prompts you added to your fpath...
mattmc3/zephyr path:plugins/prompt # .zshrc
# pick your prompt - zephyr, starship, powerlevel10k, pure
zstyle ':zephyr:plugin:prompt' theme 'zephyr'
# load antidote
source /path/to/antidote.zsh
antidote load
You can if you want! Assuming you are using antidote's static file, simply adding this to your .zsh_plugins.txt: # .zsh_plugins.txt
sorin-ionescu/prezto The trouble with doing this is, now you have two different ways to initialize plugins - Prezto's way and antidote's. Prezto requires you to setup all its plugins in zstyle definitions in The alternative to letting # .zsh_plugins.txt
# Prezto can be tricky to assemble, so you may need to modify to suit your needs
sorin-ionescu/prezto path:modules/helper/functions kind:autoload
sorin-ionescu/prezto path:modules/helper
sorin-ionescu/prezto path:modules/environment
sorin-ionescu/prezto path:modules/terminal
sorin-ionescu/prezto path:modules/editor
sorin-ionescu/prezto path:modules/history
sorin-ionescu/prezto path:modules/directory
sorin-ionescu/prezto path:modules/spectrum
sorin-ionescu/prezto path:modules/git/functions kind:autoload
sorin-ionescu/prezto path:modules/git
sorin-ionescu/prezto path:modules/history-substring-search
sorin-ionescu/prezto path:modules/history-substring-search
sorin-ionescu/prezto path:modules/completion
# And Prezto has tons more modules...
# sorin-ionescu/prezto path:modules/utility/functions kind:autoload
# sorin-ionescu/prezto path:modules/utility
# sorin-ionescu/prezto path:modules/prompt/functions kind:autoload
# sorin-ionescu/prezto path:modules/prompt
# sorin-ionescu/prezto path:modules/python
# sorin-ionescu/prezto path:modules/python/functions kind:autoload
# sorin-ionescu/prezto path:modules/osx conditional:ismacos
# sorin-ionescu/prezto path:modules/osx/functions kind:autoload conditional:ismacos
# etc... Prezto really does assume that it's run from its own init.zsh, and its subplugins are not independent. That is why I created Zephyr in the first place - it's a way to get all the goodies from frameworks like Prezto in a loosely coupled way. Enjoy your Zsh adventure! |
Beta Was this translation helpful? Give feedback.
-
Forgot to mention this - I think you're right about Spaceship. Zephyr uses Starship as its prompt (not to be confused with Spaceship). While Powerlevel10k is amazing and very fast, it's also massive and can be really complex to configure if you don't want exactly what the wizard produces for you. I like how simple and elegant Starship is, and it's really easy to customize your prompt by modifying a TOML file. It's also really well documented. I have been considering writing a Zsh plugin for Starship that replicates P10k's insta-prompt functionality. That seems to be the main sticking point people have with switching from P10k. |
Beta Was this translation helpful? Give feedback.
-
Thanks so much @mattmc3 I moved all the zstyle definitions from my old But I have to source |
Beta Was this translation helpful? Give feedback.
-
Thanks, will take a look at Zephyr |
Beta Was this translation helpful? Give feedback.
-
I believe (working to confirm) that this setup is speedy and gets the prezto goodies. I did also set it up so that the zcompfile that's created after homebrew site functions added to fpath uses the same one that prezto uses in |
Beta Was this translation helpful? Give feedback.
-
Quick follow up here... I'm using Starship, but through antidote not zephyr. I mimicked how you did it meaning setting up a
However, this doesn't seem to work. I must call |
Beta Was this translation helpful? Give feedback.
-
Hi! I just discovered antidote and am super happy with the decision to switch over. I use Prezto and wanted to clean things up a bit and improve my slow loading experience.
Spent about a week working through the experience and I feel I'm almost there. I have antidote managing prezto directly including my prompt. Same experience as before but speedier and more organized than before.
I do want to test out non prezto plugins and a few different prompts. Spaceship setup seems a pain and maybe not worth the effort. Pure seems nice. PL10k has always been heavy for me.
Thank you so much for creating and maintaining. I really appreciate how this is architected. Working through the hurdles got me exactly what I wanted. Now time to experiment.
Beta Was this translation helpful? Give feedback.
All reactions