From 421b8d0b77b7d6266ad76519bd819df80098c7bc Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 11 Oct 2014 22:22:22 +0200 Subject: add autocompletion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 8 ++++---- src/completion | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 src/completion 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)) +) + -- cgit v1.2.3-70-g09d2