mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-15 01:48:34 -07:00
themes plugin now picks a random theme if no argument is provided.
This commit is contained in:
parent
90c28b786a
commit
f731d6c16f
@ -1,6 +1,6 @@
|
||||
function theme
|
||||
{
|
||||
if [ "$1" = "random" ]; then
|
||||
if [ -z "$1" ] || [ "$1" = "random" ]; then
|
||||
themes=($ZSH/themes/*zsh-theme)
|
||||
N=${#themes[@]}
|
||||
((N=(RANDOM%N)+1))
|
||||
|
Loading…
Reference in New Issue
Block a user