~bertrand-rousseau/gtg/new-tag-label-in-taskviews

737 by Luca Invernizzi
* gtcli now shows parent task in the "show" option.
1
#!/bin/bash
2
# gtcli bash completion
3
# -----------------------------------------------------------------------------
4
# Getting Things Gnome! - A personal organizer for the GNOME desktop
5
# Copyright (c) 2010 Luca Invernizzi <invernizzi.l@gmail.com>
6
#
7
# This program is free software: you can redistribute it and/or modify it under
8
# the terms of the GNU General Public License as published by the Free Software
9
# Foundation, either version 3 of the License, or (at your option) any later
10
# version.
11
#
12
# This program is distributed in the hope that it will be useful, but WITHOUT
13
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
15
# details.
16
#
17
# You should have received a copy of the GNU General Public License along with
18
# this program.  If not, see <http://www.gnu.org/licenses/>.
19
# -----------------------------------------------------------------------------
20
21
#source this file to make it work, or include this line in your ~/.bashrc:
22
# . /path_to_this_file
23
24
_gtcli_completion()
25
{
26
   local cur
27
28
        COMPREPLY=()
29
        cur=`_get_cword`
30
31
        if [ $COMP_CWORD -eq 1 ]; then
32
            COMPREPLY=( $( compgen -W '-h  --help new show  edit  delete list
33
            count postpone close' -- $cur ) )
34
        else
35
            _filedir '@(rar|RAR)'
36
                fi
37
        return 0
38
}
39
complete -F _gtcli_completion gtcli