@k-leumas/queque-cli 0.2.6 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/shell/zsh/queque.zsh +9 -1
package/package.json
CHANGED
package/shell/zsh/queque.zsh
CHANGED
|
@@ -227,7 +227,15 @@ JSON
|
|
|
227
227
|
if [[ -n "${QQ_DEV_ROOT:-}" && -f "${QQ_DEV_ROOT}/dist/cli/main.js" ]]; then
|
|
228
228
|
qq_cmd=("node" "${QQ_DEV_ROOT}/dist/cli/main.js")
|
|
229
229
|
else
|
|
230
|
-
|
|
230
|
+
# whence -p searches PATH only, bypassing shell functions — prevents the dev
|
|
231
|
+
# qq() function from shadowing the installed Homebrew binary.
|
|
232
|
+
local _qq_bin
|
|
233
|
+
_qq_bin=$(whence -p qq 2>/dev/null)
|
|
234
|
+
if [[ -z "$_qq_bin" ]]; then
|
|
235
|
+
zle -M "queque: qq not found — run: qq init zsh >> ~/.zshrc && source ~/.zshrc"
|
|
236
|
+
return 0
|
|
237
|
+
fi
|
|
238
|
+
qq_cmd=("$_qq_bin")
|
|
231
239
|
fi
|
|
232
240
|
_qq_log "qq_cmd=${qq_cmd[*]}"
|
|
233
241
|
|