Skip to content

Commit 6f95627

Browse files
committed
Merge remote-tracking branch 'origin/source' into develop
2 parents 64ebb3f + d46ad6e commit 6f95627

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

agkozak-zsh-prompt.plugin.zsh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,19 +253,22 @@ TRAPWINCH() {
253253
# ASYNCHRONOUS FUNCTIONS
254254
###########################################################
255255

256+
typeset -g AGKOZAK_PROMPT_DIR="${0:A:h}"
257+
256258
###########################################################
257259
# If zsh-async has not already been loaded, try to load it;
258260
# the exit code should indicate success or failure
259261
#
260262
# Globals:
261263
# AGKOZAK_PROMPT_DEBUG
264+
# AGKOZAK_PROMPT_DIR
262265
###########################################################
263266
_agkozak_load_async_lib() {
264267
if ! whence -w async_init &> /dev/null; then # Don't load zsh-async twice
265268
if (( AGKOZAK_PROMPT_DEBUG )); then
266-
source "${0:A:h}/lib/async.zsh"
269+
source "${AGKOZAK_PROMPT_DIR}/lib/async.zsh"
267270
else
268-
source "${0:A:h}/lib/async.zsh" &> /dev/null
271+
source "${AGKOZAK_PROMPT_DIR}/lib/async.zsh" &> /dev/null
269272
fi
270273
local success=$?
271274
return $success

0 commit comments

Comments
 (0)