1
0
mirror of https://github.com/go-task/task.git synced 2025-11-23 22:24:45 +02:00

Remove trailing colon from task listing

This commit is contained in:
thejray
2020-02-19 07:22:37 -05:00
committed by GitHub
parent 347ecc028f
commit 069257151e

View File

@@ -6,7 +6,7 @@ _task_completion()
# Remove colon from word breaks # Remove colon from word breaks
COMP_WORDBREAKS=${COMP_WORDBREAKS//:} COMP_WORDBREAKS=${COMP_WORDBREAKS//:}
scripts=$(task -l | sed '1d' | sed 's/^\* //' | awk '{ print $1 }'); scripts=$(task -l | sed '1d' | awk '{ print $2 }' | sed 's/:$//');
curr_arg="${COMP_WORDS[COMP_CWORD]:-"."}" curr_arg="${COMP_WORDS[COMP_CWORD]:-"."}"