Commit f731d6c1 authored by Kaiwen Xu's avatar Kaiwen Xu
Browse files

themes plugin now picks a random theme if no argument is provided.

parent 90c28b78
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