mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-08 08:20:39 +01:00
themes plugin now picks a random theme if no argument is provided.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
function theme
|
function theme
|
||||||
{
|
{
|
||||||
if [ "$1" = "random" ]; then
|
if [ -z "$1" ] || [ "$1" = "random" ]; then
|
||||||
themes=($ZSH/themes/*zsh-theme)
|
themes=($ZSH/themes/*zsh-theme)
|
||||||
N=${#themes[@]}
|
N=${#themes[@]}
|
||||||
((N=(RANDOM%N)+1))
|
((N=(RANDOM%N)+1))
|
||||||
|
|||||||
Reference in New Issue
Block a user