In “on-my-zsh”, you can set “ZSH_THEME=”random”” in the “.zshrc” file. By doing so, the theme of the terminal will be changed each time when you open a terminal window.
One question is that, how to know what the current theme is? The answer is from here.
According to oh-my-zsh.sh L81-87:
f [ "$ZSH_THEME" = "random" ]; then
Therefore you should be able to print the path to the random theme with: