autocomplete sheet names in t k

This commit is contained in:
Abraham Toriz 2021-07-30 17:54:35 -05:00
parent c05897d498
commit f184d5b6a3
No known key found for this signature in database
GPG Key ID: D5B4A746DB5DD42A
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ _tiempo ()
cur="${COMP_WORDS[COMP_CWORD]}"
cmd="${COMP_WORDS[1]}"
if [[ ( $cmd = s* || $cmd = d* ) && "$COMP_CWORD" = 2 ]]; then
if [[ ( $cmd = s* || $cmd = d* || $cmd = k* ) && "$COMP_CWORD" = 2 ]]; then
COMPREPLY=($(compgen -W "$(echo "select distinct sheet from entries where sheet not like '\_%';" | z b)" $cur))
return
elif [[ "$COMP_CWORD" = 1 ]]; then