100 Days of Code: Day 00

Today, I started by pulling up a partially finished project: A replacement for Powerlevel10k’s default directory segment.

I intend to talk with romkatv (the author of P10k) to get some insight on how I can use the cache when displaying the prompt.

I ran a diff between my existing code and where I ended today, it can be found here.

The project will live here.

Creating an Asynchronous Zsh Theme

Pure bliss

I converted to Zsh a while back, when I first saw the Oh-My-Zsh framework. OMZ is really just a long chain of source calls with some logic to turn groups of features on or off. I’ve since changed to Zplugin (not to be confused with a similar framework, zplug), a wonderful framework which supports asynchronous plugin loading. This has better than halved the load time for Zsh on my Pi and phone (Termux).

However, my theme had not changed, it still has to wait until (relatively) expensive git calls have completed before redrawing the prompt. Now is the time to change this.

[Read More]
zsh  code