Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit f731d6c16fd49e8140250a90e91d01f49d13da17 1 parent 90c28b7
@kevinxucs kevinxucs authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  plugins/themes/themes.plugin.zsh
View
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))
Please sign in to comment.
Something went wrong with that request. Please try again.