changeset 3:d31291a406ed

look for oh-my-zsh in a system wide folder
author Dirk Olmes <dirk.olmes@exentra.de>
date Mon, 28 Nov 2011 16:01:49 +0100
parents 4c75712619f3
children cf017347e8bf
files oh-my-zsh zshrc
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/oh-my-zsh	Mon Nov 28 15:29:02 2011 +0100
+++ b/oh-my-zsh	Mon Nov 28 16:01:49 2011 +0100
@@ -1,5 +1,4 @@
-# Path to your oh-my-zsh configuration.
-ZSH=$HOME/.oh-my-zsh
+# Path to your oh-my-zsh configuration must be set by the script calling this one
 
 # Set name of the theme to load.
 # Look in ~/.oh-my-zsh/themes/
--- a/zshrc	Mon Nov 28 15:29:02 2011 +0100
+++ b/zshrc	Mon Nov 28 16:01:49 2011 +0100
@@ -3,7 +3,11 @@
 #
 
 if [ -d $HOME/.oh-my-zsh ]; then
+	ZSH=$HOME/.oh-my-zsh
     . $HOME/.zsh-env/oh-my-zsh
+elif [ -d /var/lib/zsh/oh-my-zsh ]; then
+	ZSH=/var/lib/zsh/oh-my-zsh
+	. $HOME/.zsh-env/oh-my-zsh
 fi
 
 # get rid of some unwanted aliases from the oh-my-zsh env