1
0
mirror of https://github.com/go-task/task.git synced 2025-06-02 23:27:37 +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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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