mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-07-01 19:49:25 +00:00
[#255] Use $ZDOTDIR or $HOME
This commit is contained in:
@ -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="$HOME/.zcompdump"
|
||||
zcompdump="${ZDOTDIR:-$HOME}/.zcompdump"
|
||||
if [[ "$zcompdump" -nt "${zcompdump}.zwc" || ! -s "${zcompdump}.zwc" ]]; then
|
||||
zcompile "$zcompdump"
|
||||
fi
|
||||
|
@ -5,10 +5,6 @@
|
||||
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
||||
#
|
||||
|
||||
# Set the path to Prezto.
|
||||
export ZDOTDIR="${ZDOTDIR:-$HOME}"
|
||||
export PREZTO="$ZDOTDIR/.zprezto"
|
||||
|
||||
#
|
||||
# Browser
|
||||
#
|
||||
|
@ -45,7 +45,9 @@ zstyle ':prezto:load' pmodule \
|
||||
zstyle ':prezto:module:prompt' theme 'sorin'
|
||||
|
||||
# Source Prezto.
|
||||
source "$PREZTO/init.zsh"
|
||||
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
|
||||
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
|
||||
fi
|
||||
|
||||
# Customize to your needs...
|
||||
|
||||
|
Reference in New Issue
Block a user