Bash Completion

- Improved bash completion when TASKRC is exported.
- Added a unit test.

Description of previous behavior:

  $ export TASKRC=/tmp/.taskrc
  $ task ad<TAB><TAB>

lead to the following output:

  $ task adTASKRC override: /tmp/.taskrc
  dTASKRC override: /tmp/.taskrc
  TASKRC override: /tmp/.taskrc

Signed-off-by: Paul Beckingham <paul@beckingham.net>
This commit is contained in:
Scott Kostyshak 2014-07-04 16:35:15 -04:00 committed by Paul Beckingham
parent 222c357c0a
commit 6eee9e0544
3 changed files with 9 additions and 4 deletions

View file

@ -50,7 +50,7 @@
#
################################################################################
#the following variable is substituted for by ../../test/bash_completion.t
taskcommand='task'
taskcommand='task rc.verbose:nothing'
_task_get_tags() {
$taskcommand _tags