aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-10-11 22:22:22 +0200
committerMattias Andrée <maandree@operamail.com>2014-10-11 22:22:22 +0200
commit421b8d0b77b7d6266ad76519bd819df80098c7bc (patch)
tree9e8db9057ec8ed765873de57447ce049e99102bb
parentm (diff)
downloadauto-auto-complete-421b8d0b77b7d6266ad76519bd819df80098c7bc.tar.gz
auto-auto-complete-421b8d0b77b7d6266ad76519bd819df80098c7bc.tar.bz2
auto-auto-complete-421b8d0b77b7d6266ad76519bd819df80098c7bc.tar.xz
add autocompletion4
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--Makefile8
-rw-r--r--src/completion20
2 files changed, 24 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index ee07b5f..cec5b84 100644
--- a/Makefile
+++ b/Makefile
@@ -31,10 +31,10 @@ PKGNAME = auto-auto-complete
# Build rules
.PHONY: default
-default: command info # shell
+default: command info shell
.PHONY: all
-all: command doc # shell
+all: command doc shell
# Build rules for the command
@@ -109,10 +109,10 @@ bin/auto-auto-complete.fish: src/completion bin/auto-auto-complete
# Install rules
.PHONY: install
-install: install-base install-examples install-info # install-shell
+install: install-base install-examples install-info install-shell
.PHONY: install
-install-all: install-base install-doc # install-shell
+install-all: install-base install-doc install-shell
# Install base rules
diff --git a/src/completion b/src/completion
new file mode 100644
index 0000000..7c16f8a
--- /dev/null
+++ b/src/completion
@@ -0,0 +1,20 @@
+(auto-auto-complete
+ (default (arg SHELL_OR_DEFINITION)
+ (files -f)
+ (suggest default)
+ (desc 'Specify a shell or variable definition'))
+
+ (argumented (options -s -f --source --file)
+ (complete --source)
+ (arg SOURCE_FILE)
+ (files -f)
+ (desc 'Specify the input auto-auto-complete script'))
+ (argumented (options -o --output)
+ (complete --output)
+ (arg OUTPUT_FILE)
+ (files -f)
+ (desc 'Specify the output shell auto-completion script'))
+
+ (suggestion default (verbatim bash zsh fish VARIABLE=VALUE))
+)
+