From 1c6b1374b3f6b2f7a9c77f59fd1e25c03338cec6 Mon Sep 17 00:00:00 2001 From: LFDM <1986gh@gmail.com> Date: Mon, 24 Mar 2014 22:15:19 +0100 Subject: [PATCH] Always set ZSH_CUSTOM for backward compatibility --- oh-my-zsh.zsh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/oh-my-zsh.zsh b/oh-my-zsh.zsh index 6287c8e96..3cde90e8c 100644 --- a/oh-my-zsh.zsh +++ b/oh-my-zsh.zsh @@ -3,6 +3,10 @@ # Skip to the bottom of the file to see how oh-my-zsh loads # its awesomeness at a single glance. +# For backward compatibility we need to set ZSH_CUSTOM, otherwise +# we break the script. +ZSH_CUSTOM=${ZSH_CUSTOM:=$ZSH/custom} + check_for_updates() { if [[ $DISABLE_AUTO_UPDATE != "true" ]]; then /usr/bin/env ZSH=$ZSH DISABLE_UPDATE_PROMPT=$DISABLE_UPDATE_PROMPT \ @@ -57,6 +61,7 @@ source_files() { load_lib_files() { source_files $ZSH/lib/*.zsh } load_plugins() { source_files $ZSH_PLUGIN_PATHS } + load_customizations() { source_files $ZSH_CUSTOM/*.zsh } # Sources ZSH_THEME