diff options
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r-- | Completion/Unix/Command/_devtodo | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_devtodo b/Completion/Unix/Command/_devtodo index 06fc675fc..2800f4a31 100644 --- a/Completion/Unix/Command/_devtodo +++ b/Completion/Unix/Command/_devtodo @@ -8,9 +8,11 @@ typeset -i i typeset expl for ((i=2; i <= $#words; i++)) { - if [[ $words[$i] == '--database' ]] { + if [[ $words[$i] == '--database' ]]; then todo_opts+=(--database ${~words[$((++i))]}) - } + elif [[ $words[$i] == '--sort' ]]; then + todo_opts+=(--sort ${words[$((++i))]}) + fi } priorities=(verylow low medium high veryhigh) |