1
0
Fork 0

Edited strings, comments, renamed, unset variables.

pull/7/merge
Sorin Ionescu 13 years ago
parent 6c17340c59
commit da1a02d853

@ -3,7 +3,7 @@
# Check for the minimum supported version. # Check for the minimum supported version.
min_zsh_version='4.3.10' min_zsh_version='4.3.10'
if ! autoload -Uz is-at-least || ! is-at-least "$min_zsh_version"; then if ! autoload -Uz is-at-least || ! is-at-least "$min_zsh_version"; then
print "omz: old shell version detected, minimum required: $min_zsh_version" >&2 print "omz: old shell detected, minimum required: $min_zsh_version" >&2
fi fi
unset min_zsh_version unset min_zsh_version
@ -39,7 +39,7 @@ source "${0:h}/alias.zsh"
source "${0:h}/spectrum.zsh" source "${0:h}/spectrum.zsh"
source "${0:h}/utility.zsh" source "${0:h}/utility.zsh"
# Autoload Zsh function builtins. # Autoload Zsh functions.
autoload -Uz age autoload -Uz age
autoload -Uz zargs autoload -Uz zargs
autoload -Uz zcalc autoload -Uz zcalc
@ -62,17 +62,19 @@ unset plugin plugins
# Autoload Oh My Zsh functions. # Autoload Oh My Zsh functions.
for fdir in "$fpath[@]"; do for fdir in "$fpath[@]"; do
if [[ "$fdir" == ${0:h}/(|*/)functions ]]; then if [[ "$fdir" == ${0:h}/(|*/)functions ]]; then
for afunction in $fdir/[^_.]*(N.:t); do for func in $fdir/[^_.]*(N.:t); do
autoload -Uz $afunction autoload -Uz $func
done done
fi fi
done done
unset fdir func
# Set environment variables for launchd processes. # Set environment variables for launchd processes.
if [[ "$OSTYPE" == darwin* ]]; then if [[ "$OSTYPE" == darwin* ]]; then
for env_var in PATH MANPATH; do for env_var in PATH MANPATH; do
launchctl setenv "$env_var" "${(P)env_var}" &! launchctl setenv "$env_var" "${(P)env_var}" &!
done done
unset env_var
fi fi
# Load and run the prompt theming system. # Load and run the prompt theming system.
@ -83,8 +85,10 @@ zstyle -a ':omz:prompt' theme 'prompt_argv'
prompt "$prompt_argv[@]" prompt "$prompt_argv[@]"
unset prompt_argv unset prompt_argv
# Compile zcompdump, if modified, to increase startup speed. # Compile the completion dump, to increase startup speed.
if [[ "$HOME/.zcompdump" -nt "$HOME/.zcompdump.zwc" ]] || [[ ! -f "$HOME/.zcompdump.zwc" ]]; then dump_file="$HOME/.zcompdump"
zcompile "$HOME/.zcompdump" if [[ "$dump_file" -nt "${dump_file}.zwc" || ! -f "${dump_file}.zwc" ]]; then
zcompile "$dump_file"
fi fi
unset dump_file

Loading…
Cancel
Save