File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments