We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e28f309 commit f3c901bCopy full SHA for f3c901b
misc/_bartib
@@ -1,9 +1,9 @@
1
#compdef bartib
2
3
_bartib_tasks() {
4
- local -a _tasks=($(bartib last | awk 'NR > 2 {print $1}' | tr -d '[]' | sort | tr '\n' ' '))
+ local -a _tasks=($(bartib last | head -n -1 | awk 'BEGIN { a="" } NR > 2 {for (i=2; i <= NF - 1; i++) { if (i != 2) { a=a" "$i; } else { a=$i } } gsub("[\[\]]", "", $1); printf("%s[%s]\n", $1, a)}' | tr '\n' ' '))
5
6
- _values "NUMBER" ${_tasks[@]}
+ _values "TASK" ${_tasks[@]}
7
}
8
9
_bartib_projects() {
0 commit comments