Sha256: bebe87175f5aa6f2b76b7fcdf10e197466fae87577e2e52f70d0d7c76c54a449

Contents?: true

Size: 490 Bytes

Versions: 1

Compression:

Stored size: 490 Bytes

Contents

#!/bin/bash
_timetrap ()
{
  cur="${COMP_WORDS[COMP_CWORD]}"
  cmd="${COMP_WORDS[1]}"

  if [[ ( $cmd = s* || $cmd = d* ) && "$COMP_CWORD" = 2 ]]; then
    COMPREPLY=($(compgen -W "$(echo "select distinct sheet from entries where sheet not like '\_%';" | t b)" $cur))
    return
  elif [[ "$COMP_CWORD" = 1 ]]; then
    CMDS="archive backend configure display edit in kill list now out resume sheet week month"
    COMPREPLY=($(compgen -W "$CMDS" $cur))
  fi

}


complete -F _timetrap 't'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
timetrap-1.15.4 completions/bash/timetrap-autocomplete.bash