mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 20:57:59 +00:00
Set ZPREZTODIR to ${0:h}
This commit is contained in:
parent
7346efd206
commit
0be0ff565a
7
init.zsh
7
init.zsh
@ -86,8 +86,11 @@ function pmodload {
|
|||||||
# Prezto Initialization
|
# Prezto Initialization
|
||||||
#
|
#
|
||||||
|
|
||||||
# Find the dir Prezto is installed to
|
# This finds the directory prezto is installed to so plugin managers don't need
|
||||||
ZPREZTODIR=${ZPREZTODIR:-${ZDOTDIR:-$HOME}/.zprezto}
|
# to rely on dirty hacks to force prezto into a directory. Additionally, it
|
||||||
|
# needs to be done here because inside the pmodload function ${0:h} evaluates to
|
||||||
|
# the current directory of the shell rather than the prezto dir.
|
||||||
|
ZPREZTODIR=${0:h}
|
||||||
|
|
||||||
# Source the Prezto configuration file.
|
# Source the Prezto configuration file.
|
||||||
if [[ -s "${ZDOTDIR:-$HOME}/.zpreztorc" ]]; then
|
if [[ -s "${ZDOTDIR:-$HOME}/.zpreztorc" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user