When developing Ghost themes, or testing things I’m working on, I tend to change themes a lot.
Today I went looking for a faster way to do it, and didn’t find one, so I wrote a bash one-liner that I’m pleased with, which allows me to rapidly hot-swap the active theme, by updating a symlink — with a pleasant FZF-powered theme-selector UI
The end result:
ln -sfn "$(find content/themes -maxdepth 1 -type d -print | fzf | xargs basename)" content/themes/current
Here’s the full tutorial: