From ca1995d7d5fe362cad7098ed45cf8c19440b8e0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjarki=20=C3=81g=C3=BAst=20Gu=C3=B0mundsson?= Date: Fri, 3 Aug 2012 15:50:50 +0000 Subject: [PATCH] Use "prezto" instead of "PREZTO" --- helper.zsh | 10 +++++----- templates/zshenv | 2 +- templates/zshrc | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helper.zsh b/helper.zsh index 6004ab1b..7bd32435 100644 --- a/helper.zsh +++ b/helper.zsh @@ -45,11 +45,11 @@ function omodload { setopt LOCAL_OPTIONS EXTENDED_GLOB # Add functions to fpath. - fpath=(${omodules:+${PREZTO}/modules/${^omodules}/functions(/FN)} $fpath) + fpath=(${omodules:+${prezto}/modules/${^omodules}/functions(/FN)} $fpath) # Load Prezto functions. for ofunction in \ - $PREZTO/modules/${^omodules}/functions/^([_.]*|prompt_*_setup|README*)(.N:t) + $prezto/modules/${^omodules}/functions/^([_.]*|prompt_*_setup|README*)(.N:t) do autoload -Uz "$ofunction" done @@ -58,12 +58,12 @@ function omodload { for omodule in "$omodules[@]"; do if zstyle -t ":omz:module:$omodule" loaded; then continue - elif [[ ! -d "$PREZTO/modules/$omodule" ]]; then + elif [[ ! -d "$prezto/modules/$omodule" ]]; then print "$0: no such module: $omodule" >&2 continue else - if [[ -s "$PREZTO/modules/$omodule/init.zsh" ]]; then - source "$PREZTO/modules/$omodule/init.zsh" + if [[ -s "$prezto/modules/$omodule/init.zsh" ]]; then + source "$prezto/modules/$omodule/init.zsh" fi if (( $? == 0 )); then diff --git a/templates/zshenv b/templates/zshenv index 260897e4..467f55a7 100644 --- a/templates/zshenv +++ b/templates/zshenv @@ -7,7 +7,7 @@ # Set the path to Prezto. # TODO: use $HOME/.prezto -export PREZTO="$HOME/.oh-my-zsh" +export prezto="$HOME/.oh-my-zsh" # Paths typeset -gU cdpath fpath mailpath manpath path diff --git a/templates/zshrc b/templates/zshrc index 8342a242..09987929 100644 --- a/templates/zshrc +++ b/templates/zshrc @@ -45,7 +45,7 @@ zstyle ':omz:load' omodule \ zstyle ':omz:module:prompt' theme 'sorin' # Hey Prezto! -source "$PREZTO/init.zsh" +source "$prezto/init.zsh" # Customize to your needs...