Skip to content

Instantly share code, notes, and snippets.

@meeech
Created June 29, 2015 15:47
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save meeech/b2dafdb31f90160e833c to your computer and use it in GitHub Desktop.
pick from whitelist of random themes for oh-my-zsh
#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