1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-07-06 11:39:25 +00:00

Simplify the use of ZDOTDIR

This commit is contained in:
Sorin Ionescu
2013-05-20 14:50:34 -04:00
parent 773ca7ee50
commit 5c7bd2009c
7 changed files with 33 additions and 21 deletions

View File

@ -8,7 +8,7 @@
# Execute code that does not affect the current session in the background.
{
# Compile the completion dump to increase startup speed.
zcompdump="${ZDOTDIR:-$HOME}/.zcompdump"
zcompdump="$ZDOTDIR/.zcompdump"
if [[ -s "$zcompdump" && (! -s "${zcompdump}.zwc" || "$zcompdump" -nt "${zcompdump}.zwc") ]]; then
zcompile "$zcompdump"
fi

View File

@ -74,3 +74,10 @@ if [[ ! -d "$TMPPREFIX" ]]; then
mkdir -p "$TMPPREFIX"
fi
#
# Zsh
#
ZDOTDIR="${ZDOTDIR:-$HOME}"
PREZTO="$ZDOTDIR/.zprezto"

View File

@ -6,8 +6,8 @@
#
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
if [[ -s "$PREZTO/init.zsh" ]]; then
source "$PREZTO/init.zsh"
fi
# Customize to your needs...