-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathoptions.zsh
81 lines (64 loc) · 1.85 KB
/
options.zsh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Zsh Plugin Standard
if [[ $ZGENOM_AUTO_ADD_BIN -eq 1 ]]; then
export PMSPEC=0fbiPs
else
export PMSPEC=0fiPs
ZGENOM_AUTO_ADD_BIN=0
fi
if [[ -z $ZPFX ]]; then
export ZPFX="$ZGEN_SOURCE/polaris"
fi
if [[ -z "${ZGENOM_SOURCE_BIN}" ]]; then
ZGENOM_SOURCE_BIN="$ZGEN_SOURCE/bin"
fi
# The user can explicitly disable Zgenom attempting to invoke `compinit`, or it
# will be automatically disabled if `compinit` appears to have already been
# invoked.
if [[ -z "${ZGEN_AUTOLOAD_COMPINIT}" && -z "${(t)_comps}" ]]; then
ZGEN_AUTOLOAD_COMPINIT=1
fi
: ${(q)ZGEN_CUSTOM_COMPDUMP:=$ZGEN_DIR/zcompdump_$ZSH_VERSION}
if [[ -n "${ZGEN_CUSTOM_COMPDUMP}" ]]; then
ZGEN_COMPINIT_DIR_FLAG="-d ${(q)ZGEN_CUSTOM_COMPDUMP}"
ZGEN_COMPINIT_FLAGS="${ZGEN_COMPINIT_DIR_FLAG} ${ZGEN_COMPINIT_FLAGS}"
fi
if [[ -z "${ZGEN_LOADED}" ]]; then
ZGEN_LOADED=()
fi
if [[ -z "${ZGENOM_LOADED}" ]]; then
ZGENOM_LOADED=()
fi
if [[ -z "${ZGENOM_PLUGINS}" ]]; then
ZGENOM_PLUGINS=()
fi
if [[ -z "${zsh_loaded_plugins}" ]]; then
typeset -ga zsh_loaded_plugins
fi
if [[ -z "${ZGEN_PREZTO_OPTIONS}" ]]; then
ZGEN_PREZTO_OPTIONS=()
fi
if [[ -z "${ZGEN_PREZTO_LOAD}" ]]; then
ZGEN_PREZTO_LOAD=()
fi
if [[ -z "${ZGEN_COMPLETIONS}" ]]; then
ZGEN_COMPLETIONS=()
fi
if [[ -z "${ZGEN_USE_PREZTO}" ]]; then
ZGEN_USE_PREZTO=0
fi
if [[ -z "${ZGEN_PREZTO_LOAD_DEFAULT}" ]]; then
ZGEN_PREZTO_LOAD_DEFAULT=1
fi
if [[ -z "${ZGEN_OH_MY_ZSH_REPO}" ]]; then
ZGEN_OH_MY_ZSH_REPO=ohmyzsh/ohmyzsh
fi
if [[ "${ZGEN_OH_MY_ZSH_REPO}" != */* ]]; then
# Even though the default repo is now ohmyzsh most forks still use oh-my-zsh
ZGEN_OH_MY_ZSH_REPO="${ZGEN_OH_MY_ZSH_REPO}/oh-my-zsh"
fi
if [[ -z "${ZGEN_PREZTO_REPO}" ]]; then
ZGEN_PREZTO_REPO=sorin-ionescu
fi
if [[ "${ZGEN_PREZTO_REPO}" != */* ]]; then
ZGEN_PREZTO_REPO="${ZGEN_PREZTO_REPO}/prezto"
fi