On Mon, Jan 25, 2021 at 09:23:32AM +0100, Roman Perepelitsa wrote: > On Mon, Jan 25, 2021 at 9:17 AM Arseny Maslennikov wrote: > > > > This problem was previously brought up in zsh-users/23314, to no avail. > > Also related: zsh-workers/46202. Thank you for bringing this up! However, during working on the patch I found out this is not the only problem with prompt theme cleanups. prompt_$theme_setup works both as an autoloaded function to pull the theme components in and as the setup function, so `prompt -h $theme' and `prompt -p $theme' both _activate_ the $theme and fail to run the cleanup actions.