diff options
author | Kaiwen Xu <kevin@kevxu.net> | 2013-10-28 11:06:10 -0400 |
---|---|---|
committer | Kaiwen Xu <kevin@kevxu.net> | 2013-10-28 11:06:10 -0400 |
commit | f731d6c16fd49e8140250a90e91d01f49d13da17 (patch) | |
tree | 324f91d8bc03e7511e442bdb7994070148fa3570 | |
parent | 90c28b786ae8a8013fc5083e9cf941115152c706 (diff) | |
download | zsh-f731d6c16fd49e8140250a90e91d01f49d13da17.tar.gz zsh-f731d6c16fd49e8140250a90e91d01f49d13da17.tar.bz2 zsh-f731d6c16fd49e8140250a90e91d01f49d13da17.zip |
themes plugin now picks a random theme if no argument is provided.
-rw-r--r-- | plugins/themes/themes.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/themes/themes.plugin.zsh b/plugins/themes/themes.plugin.zsh index 8bab257ea..7519b0253 100644 --- a/plugins/themes/themes.plugin.zsh +++ b/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)) |