From 963574e298ab30f3aade59a8df6da28a4c6cb190 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 30 May 2009 17:07:52 -0400 Subject: [PATCH] Patch - Added license information (GPLv2+) to shell completion scripts From 1d182d7260776edb7543cb49ccf7c59fbb95d81e Mon Sep 17 00:00:00 2001 From: Federico Hernandez Date: Sat, 30 May 2009 20:51:24 +0200 Subject: [PATCH 1/2] Added license information (GPLv2+) to shell completion scripts. --- scripts/bash/task_completion.sh | 41 +++++++++++++++++++++++---------- scripts/zsh/_task | 26 ++++++++++++++++++++- 2 files changed, 54 insertions(+), 13 deletions(-) diff --git a/scripts/bash/task_completion.sh b/scripts/bash/task_completion.sh index 73f60e97e..0347164ad 100644 --- a/scripts/bash/task_completion.sh +++ b/scripts/bash/task_completion.sh @@ -1,18 +1,39 @@ +# bash completion support for task # -# bash completion support for task 1.7.0-2 -# Copyright (C) 2009 Federico Hernandez -# Distributed under the GNU General Public License, version 2.0 +# Copyright 2009 Federico Hernandez +# All rights reserved. +# +# This script is part of the task project. +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# this program; if not, write to the +# +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA +# 02110-1301 +# USA # # The routines will do completion of: # # *) task subcommands -# *) local and remote tag names +# *) tag names # # To use these routines: # -# 1) Copy this file to somewhere (e.g. ~/.task-completion.sh). +# 1) Copy this file to somewhere (e.g. ~/.bash_completion.d/.task_completion.sh). # 2) Added the following line to your .bashrc: -# source ~/.task-completion.sh +# source ~/.bash_completion.d/task_completion.sh # # OR # @@ -21,13 +42,9 @@ # # To submit patches/bug reports: # -# *) Send them to the mailing list: +# *) Go to the projects website at # -# taskprogram@googlegroups.com -# -# *) CC the all patchesi/bug reports to: -# -# Federico Hernandez +# http://taskwarrior.org # _task() diff --git a/scripts/zsh/_task b/scripts/zsh/_task index e53389ccb..56c78def1 100644 --- a/scripts/zsh/_task +++ b/scripts/zsh/_task @@ -1,6 +1,30 @@ #compdef task # zsh completion for task -# P.C. Shyamshankar +# +# Copyright 2009 P.C. Shyamshankar +# All rights reserved. +# +# This script is part of the task project. +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# this program; if not, write to the +# +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA +# 02110-1301 +# USA +# typeset -g _task_cmds _task_cmds=($(task rubbish-command | sed -n -e 's/^\s\+task \(\w\+\) .*/\1/p' | grep -v ID))