Random Helix Themes

Published at 2024-12-15T13:55:05+02:00; Last updated 2024-12-18

I thought it would be fun to have a random Helix theme every time I open a new shell. Helix is the text editor I use.

https://helix-editor.com/

So I put this into my `zsh` dotfiles (in some `editor.zsh.source` in my `~` directory):

So every time I open a new terminal or shell, `editor::helix::random_theme` gets called, which randomly selects a theme from all installed ones and updates the helix config accordingly.

A better version

Update 2024-12-18: This is an improved version, which works cross platform (e.g., also on MacOS) and multiple theme directories:

I hope you had some fun. E-Mail your comments to `paul@nospam.buetow.org` :-)

Back to the main site