oh-my-bash icon indicating copy to clipboard operation
oh-my-bash copied to clipboard

New plugin to switch themes randomly

Open fastovst opened this issue 4 years ago • 3 comments

Inspired by zsh's plugin, this is a simple script, that takes a random theme name from .oh-my.bash/themes and activates it for a bash prompt.

fastovst avatar Apr 21 '20 12:04 fastovst

It would be interesting to have an alternative to change this line in .bashrc

OSH_THEME="random"

Israel-Laguan avatar Apr 25 '20 01:04 Israel-Laguan

It would be interesting to have an alternative to change this line in .bashrc

OSH_THEME="random"

Yeah, that's a good idea, I think it can be achieved by creating a theme file with the same or similar code as in this plugin.

fastovst avatar May 22 '20 12:05 fastovst

Yeah, that's a good idea, I think it can be achieved by creating a theme file with the same or similar code as in this plugin.

I guess @Israel-Laguan has just meant to set OSH_THEME=random and source ~~.bashrc~~ oh-my-bash.sh again. The value random is already processed as a special value in oh-my-bash.sh: https://github.com/ohmybash/oh-my-bash/blob/f4a24a11de1b9c3599ef0977868793bf04d709af/oh-my-bash.sh#L134-L141

akinomyoga avatar Dec 25 '21 05:12 akinomyoga

Since this is already implemented as OSH_THEME="random", let me close the PR. Anyway, thank you for opening a PR!

akinomyoga avatar Apr 09 '23 21:04 akinomyoga