Commit 182652b0 authored by Robby Russell's avatar Robby Russell
Browse files

Merge pull request #2202 from kevinxucs/themes-random

themes plugin now picks a random theme if no argument is provided.
parents 9a40ae9b f731d6c1
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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment