From cfb2989853596b7c40f5e02f6d40c1c367b95cd5 Mon Sep 17 00:00:00 2001 From: Abraham Toriz Date: Fri, 4 Nov 2022 22:00:18 -0600 Subject: [PATCH] use list's --flat option for bash completion --- completions/bash/tiempo-autocomplete.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/completions/bash/tiempo-autocomplete.bash b/completions/bash/tiempo-autocomplete.bash index 1494530..5ce55a2 100644 --- a/completions/bash/tiempo-autocomplete.bash +++ b/completions/bash/tiempo-autocomplete.bash @@ -5,7 +5,7 @@ _tiempo () cmd="${COMP_WORDS[1]}" if [[ ( $cmd = s* || $cmd = d* || $cmd = k* ) && "$COMP_CWORD" = 2 ]]; then - COMPREPLY=($(compgen -W "$(echo "select distinct sheet from entries where sheet not like '\_%';" | t b)" $cur)) + COMPREPLY=($(compgen -W "$(t l --all --flat)" $cur)) return elif [[ "$COMP_CWORD" = 1 ]]; then CMDS="archive backend configure display edit in kill list now out resume sheet week month"