aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-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))
+)
+