mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Scripts: Disable hooks in bash completion script
- Stop on-launch and on-exit hooks with output from interfering with bash completion.
This commit is contained in:
parent
04d0c52a43
commit
229078ffed
3 changed files with 5 additions and 3 deletions
|
@ -14,6 +14,8 @@
|
||||||
Scott Carter).
|
Scott Carter).
|
||||||
- Setting 'bulk' to zero is interpreted as infinity, which means there is no
|
- Setting 'bulk' to zero is interpreted as infinity, which means there is no
|
||||||
amount of changes that is considered dangerous (thanks to Tomas Babej).
|
amount of changes that is considered dangerous (thanks to Tomas Babej).
|
||||||
|
- Disable hooks in bash completion script. Hooks were previously able to
|
||||||
|
abort processing or output interfering data, breaking completion.
|
||||||
|
|
||||||
------ current release ---------------------------
|
------ current release ---------------------------
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
#the following variable is substituted for by ../../test/bash_completion.t
|
#the following variable is substituted for by ../../test/bash_completion.t
|
||||||
taskcommand='task rc.verbose:nothing rc.confirmation:no'
|
taskcommand='task rc.verbose:nothing rc.confirmation:no rc.hooks:off'
|
||||||
|
|
||||||
_task_get_tags() {
|
_task_get_tags() {
|
||||||
$taskcommand _tags
|
$taskcommand _tags
|
||||||
|
|
|
@ -55,9 +55,9 @@ if (open my $target, '>', 'task.sh')
|
||||||
{
|
{
|
||||||
my $temp=$_;
|
my $temp=$_;
|
||||||
chomp($_);
|
chomp($_);
|
||||||
if ($_ eq "taskcommand='task rc.verbose:nothing rc.confirmation:no'")
|
if ($_ eq "taskcommand='task rc.verbose:nothing rc.confirmation:no rc.hooks:off'")
|
||||||
{
|
{
|
||||||
print $target "taskcommand='../src/task rc.verbose:nothing rc.confirmation:no rc:bug.rc'";
|
print $target "taskcommand='../src/task rc.verbose:nothing rc.confirmation:no rc.hooks:off rc:bug.rc'";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue