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

master
Kaiwen Xu 13 years ago
parent 90c28b786a
commit f731d6c16f
  1. 2
      plugins/themes/themes.plugin.zsh

@ -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…
Cancel
Save