|
@@ -48,13 +48,15 @@ omz_f() {
|
|
unset -f omz_f
|
|
unset -f omz_f
|
|
|
|
|
|
|
|
|
|
-[[ -z "$ZSH" ]] && export ZSH="${${(%):-%x}:a:h}"
|
|
+[[ -n "$ZSH" ]] || export ZSH="${${(%):-%x}:a:h}"
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+[[ -n "$ZSH_CUSTOM" ]] || ZSH_CUSTOM="$ZSH/custom"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-if [[ -z "$ZSH_CACHE_DIR" ]]; then
|
|
+[[ -n "$ZSH_CACHE_DIR" ]] || ZSH_CACHE_DIR="$ZSH/cache"
|
|
- ZSH_CACHE_DIR="$ZSH/cache"
|
|
|
|
-fi
|
|
|
|
|
|
|
|
|
|
|
|
if [[ ! -w "$ZSH_CACHE_DIR" ]]; then
|
|
if [[ ! -w "$ZSH_CACHE_DIR" ]]; then
|
|
@@ -76,12 +78,6 @@ fpath=($ZSH/{functions,completions} $ZSH_CUSTOM/{functions,completions} $fpath)
|
|
|
|
|
|
autoload -U compaudit compinit zrecompile
|
|
autoload -U compaudit compinit zrecompile
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-if [[ -z "$ZSH_CUSTOM" ]]; then
|
|
|
|
- ZSH_CUSTOM="$ZSH/custom"
|
|
|
|
-fi
|
|
|
|
-
|
|
|
|
is_plugin() {
|
|
is_plugin() {
|
|
local base_dir=$1
|
|
local base_dir=$1
|
|
local name=$2
|
|
local name=$2
|