oh-my-bash
oh-my-bash copied to clipboard
New plugin to switch themes randomly
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.
It would be interesting to have an alternative to change this line in .bashrc
OSH_THEME="random"
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.
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
Since this is already implemented as OSH_THEME="random"
, let me close the PR. Anyway, thank you for opening a PR!