That way they can be used in anything in lib
[[ ! -d "$ZSH_CACHE" ]] && echo "Missing cache dir: '$ZSH_CACHE'" && return
[[ ! -d "$ZSH_DATA" ]] && echo "Missing data dir: '$ZSH_DATA'" && return
[[ ! -d "$ZSH_CACHE" ]] && echo "Missing cache dir: '$ZSH_CACHE'" && return
[[ ! -d "$ZSH_DATA" ]] && echo "Missing data dir: '$ZSH_DATA'" && return
+# load my functions
+typeset -U fpath # make fpath a unique array
+[[ -d $ZSH/functions ]] && fpath=($ZSH/functions $fpath)
+autoload -U ${fpath[1]}/*(:t) # loads all functions in the first element of fpath
+
# Load all of the config files in $ZSH/lib that end in .zsh
for config_file ($ZSH/lib/*.zsh); do
source $config_file
# Load all of the config files in $ZSH/lib that end in .zsh
for config_file ($ZSH/lib/*.zsh); do
source $config_file
ZSH_THEME="ramsi"
[[ -f "$ZSH/themes/${ZSH_THEME}.zsh-theme" ]] && source "$ZSH/themes/${ZSH_THEME}.zsh-theme"
ZSH_THEME="ramsi"
[[ -f "$ZSH/themes/${ZSH_THEME}.zsh-theme" ]] && source "$ZSH/themes/${ZSH_THEME}.zsh-theme"
-# load my functions
-typeset -U fpath # make fpath a unique array
-[[ -d $ZSH/functions ]] && fpath=($ZSH/functions $fpath)
-autoload -U ${fpath[1]}/*(:t) # loads all functions in the first element of fpath
-
# initialise completion
autoload -U compinit; compinit -d "$ZSH_CACHE/zcompdump"
# initialise completion
autoload -U compinit; compinit -d "$ZSH_CACHE/zcompdump"