1
0
mirror of https://github.com/go-task/task.git synced 2025-07-15 01:35:00 +02:00

chore(completions): support tilde home directory for zsh (#1613)

This commit is contained in:
jwater7
2024-04-23 18:57:43 -07:00
committed by GitHub
parent a3b9554efd
commit fa022be1f9

View File

@ -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