From 2ef1a5575ada9afe967ff728108415d0bd9ea4e1 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 27 Nov 2015 00:49:13 +0100 Subject: fix auto-completion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 8 ++++---- src/adjbacklight.auto-completion | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index a4967f5..3bfbdbb 100644 --- a/Makefile +++ b/Makefile @@ -95,13 +95,13 @@ bin/%.ps: doc/info/%.texinfo shell: bash fish zsh .PHONY: bash -bash: adjbacklight.bash-completion +bash: bin/adjbacklight.bash-completion .PHONY: fish -fish: adjbacklight.fish-completion +fish: bin/adjbacklight.fish-completion .PHONY: zsh -zsh: adjbacklight.zsh-completion +zsh: bin/adjbacklight.zsh-completion obj/adjbacklight.auto-completion: src/adjbacklight.auto-completion @mkdir -p obj @@ -184,7 +184,7 @@ install-fish: bin/adjbacklight.fish-completion .PHONY: install-zsh install-zsh: bin/adjbacklight.zsh-completion - install -dm755 -- "$(DESTDIR)$(DATADIR)/zsh/site-functions)" + install -dm755 -- "$(DESTDIR)$(DATADIR)/zsh/site-functions" install -m644 "$<" -- "$(DESTDIR)$(DATADIR)/zsh/site-functions/_$(COMMAND)" diff --git a/src/adjbacklight.auto-completion b/src/adjbacklight.auto-completion index aca9796..a06884f 100644 --- a/src/adjbacklight.auto-completion +++ b/src/adjbacklight.auto-completion @@ -1,6 +1,4 @@ (adjbacklight - (default (arg '(+|-|=)LEVEL[%|%%]') (files -0) (description 'Adjust backlight')) - (unargumented (options -c --copyright --copying) (complete --copying) (desc 'Display copyright information')) -- cgit v1.2.3-70-g09d2