Created
June 29, 2015 15:47
-
-
Save meeech/b2dafdb31f90160e833c to your computer and use it in GitHub Desktop.
pick from whitelist of random themes for oh-my-zsh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Add to your .zshrc right by ZSH_THEME | |
####### | |
# Setup a random theme to load from a list I define | |
MYZSH_RANDOM_THEMES=(\ | |
're5et' \ | |
'sorin' \ | |
'steeef' \ | |
'dstufft' \ | |
'random' \ | |
) | |
MYZSH_THEME_INDEX=${#MYZSH_RANDOM_THEMES[@]} | |
((MYZSH_THEME_INDEX=(RANDOM%MYZSH_THEME_INDEX)+1)) | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME=${MYZSH_RANDOM_THEMES[${MYZSH_THEME_INDEX}]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment