Skip to content

Instantly share code, notes, and snippets.

@danielmiessler
Created November 27, 2013 01:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielmiessler/7669527 to your computer and use it in GitHub Desktop.
Save danielmiessler/7669527 to your computer and use it in GitHub Desktop.
Test
export LSCOLORS='Exfxcxdxbxegedabagacad'
@danielmiessler
Copy link
Author

Load the theme

if [ "$ZSH_THEME" = "random" ]
then
themes=($ZSH/themes/*zsh-theme)
N=${#themes[@]}
((N=(RANDOM%N)+1))
RANDOM_THEME=${themes[$N]}
source "$RANDOM_THEME"

echo "[oh-my-zsh] Random theme '$RANDOM_THEME' loaded..."

else
if [ ! "$ZSH_THEME" = "" ]
then
source "$ZSH/themes/$ZSH_THEME.zsh-theme"
fi
fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment