1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-07-05 20:49:25 +00:00

Simplify the use of ZDOTDIR

This commit is contained in:
Sorin Ionescu
2013-05-20 14:50:34 -04:00
parent 2ebdbdcff5
commit f5f295cc99
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

@ -10,3 +10,10 @@ if [[ "$SHLVL" -eq 1 && ! -o LOGIN ]]; then
source "${ZDOTDIR:-$HOME}/.zprofile"
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...