aboutsummaryrefslogtreecommitdiff
path: root/etc/compl.sh
diff options
context:
space:
mode:
Diffstat (limited to 'etc/compl.sh')
-rw-r--r--etc/compl.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/compl.sh b/etc/compl.sh
index 9675c35..b11687b 100644
--- a/etc/compl.sh
+++ b/etc/compl.sh
@@ -1,27 +1,27 @@
1#! /bin/bash 1#! /bin/bash
2# Bash completion setup for Eclat commands. 2# Bash completion setup for Eclat commands.
3# Copyright (C) 2012, 2013 Sergey Poznyakoff 3# Copyright (C) 2012-2014 Sergey Poznyakoff
4# 4#
5# Eclat is free software; you can redistribute it and/or modify 5# Eclat is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by 6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 3, or (at your option) 7# the Free Software Foundation; either version 3, or (at your option)
8# any later version. 8# any later version.
9# 9#
10# Eclat is distributed in the hope that it will be useful, 10# Eclat is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of 11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details. 13# GNU General Public License for more details.
14# 14#
15# You should have received a copy of the GNU General Public License 15# You should have received a copy of the GNU General Public License
16# along with Eclat. If not, see <http://www.gnu.org/licenses/>. 16# along with Eclat. If not, see <http://www.gnu.org/licenses/>.
17 17
18comp_eclat() { 18comp_eclat() {
19 # Obtain a list of command line options. Each option occupies 19 # Obtain a list of command line options. Each option occupies
20 # a single line and is followed by an equals sign if it takes 20 # a single line and is followed by an equals sign if it takes
21 # an argument. 21 # an argument.
22 local optlist=$(eclat --usage|sed '1s/^[^[]*//' | 22 local optlist=$(eclat --usage|sed '1s/^[^[]*//' |
23 tr -d '\n' | 23 tr -d '\n' |
24 tr -s ' ' | 24 tr -s ' ' |
25 sed 's/\] \[/:/g;' | 25 sed 's/\] \[/:/g;' |
26 tr -d '[]' | 26 tr -d '[]' |
27 awk -F: ' 27 awk -F: '

Return to:

Send suggestions and report system problems to the System administrator.