From fa022be1f9bc29447d5c90bde99a70fe36420b02 Mon Sep 17 00:00:00 2001 From: jwater7 Date: Tue, 23 Apr 2024 18:57:43 -0700 Subject: [PATCH] chore(completions): support tilde home directory for zsh (#1613) --- completion/zsh/_task | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/completion/zsh/_task b/completion/zsh/_task index b315b056..56f2736b 100755 --- a/completion/zsh/_task +++ b/completion/zsh/_task @@ -12,7 +12,9 @@ function __task_list() { local taskfile item task desc cmd=(task) - taskfile="${(v)opt_args[(i)-t|--taskfile]}" + taskfile=${(Qv)opt_args[(i)-t|--taskfile]} + taskfile=${taskfile//\~/$HOME} + if [[ -n "$taskfile" && -f "$taskfile" ]]; then enabled=1