From 0883bf60aa5ab6d47190dd2864cf6a425c75d1e6 Mon Sep 17 00:00:00 2001 From: Mitchell Ludwig Date: Thu, 7 Sep 2023 22:48:35 +1200 Subject: [PATCH] Fixing quoting issue --- bin/autojump.zsh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/autojump.zsh b/bin/autojump.zsh index 859c6b3..03f8ba3 100644 --- a/bin/autojump.zsh +++ b/bin/autojump.zsh @@ -2,12 +2,12 @@ export AUTOJUMP_SOURCED=1 SCRIPT_DIR="${0:a:h}" # set user installation paths -path=(${SCRIPT_DIR} ${path}) +path=(${SCRIPT_DIR} "${path[@]}") if [[ -d ~/.autojump/bin ]]; then - path=(~/.autojump/bin ${path}) + path=(~/.autojump/bin "${path[@]}") fi if [[ -d ~/.autojump/functions ]]; then - fpath=(~/.autojump/functions ${fpath}) + fpath=(~/.autojump/functions "${fpath[@]}") fi @@ -15,7 +15,7 @@ fi if command -v brew &>/dev/null; then local brew_prefix=${BREW_PREFIX:-$(brew --prefix)} if [[ -d "${brew_prefix}/share/zsh/site-functions" ]]; then - fpath=("${brew_prefix}/share/zsh/site-functions" ${fpath}) + fpath=("${brew_prefix}/share/zsh/site-functions" "${fpath[@]}") fi fi