feat(completions): add bash (#118)
continuous-integration/drone/push Build is passing Details

well, at least the same Dig and drill do

Reviewed-on: #118
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
This commit is contained in:
Sam Therapy 2022-09-28 12:40:27 +00:00
parent 14416d5aec
commit f2218481ee
Signed by: Froth Git
GPG Key ID: 5D8CD75CC6B79913
3 changed files with 8 additions and 1 deletions

View File

@ -19,5 +19,6 @@ install: all
install -Dm755 $(PROG) $(DESTDIR)$(PREFIX)/$(BIN)/$(PROG)
install -Dm644 doc/$(PROG).1 $(DESTDIR)$(MAN)/man1/$(PROG).1
# completions need to go in one specific place :)
install -Dm644 completions/bash.bash $(DESTDIR)/$(PREFIX)/$(SHARE)/bash-completion/completions/$(PROG)
install -Dm644 completions/zsh.zsh $(DESTDIR)/$(PREFIX)/$(SHARE)/zsh/site-functions/_$(PROG)
endif

View File

@ -11,4 +11,5 @@ install: all
install -Dm755 $(PROG) $(DESTDIR)$(PREFIX)/$(BIN)/$(PROG)
install -Dm644 doc/$(PROG).1 $(DESTDIR)$(MAN)/man1/$(PROG).1
# completions need to go in one specific place :)
install -Dm644 completions/zsh.zsh $(DESTDIR)/$(PREFIX)/$(SHARE)/zsh/site-functions/_$(PROG)
install -Dm644 completions/bash.bash $(DESTDIR)/$(PREFIX)/$(SHARE)/bash-completion/completions/$(PROG)
install -Dm644 completions/zsh.zsh $(DESTDIR)/$(PREFIX)/$(SHARE)/zsh/site-functions/_$(PROG)

5
completions/bash.bash Normal file
View File

@ -0,0 +1,5 @@
# bash completion for awl -*- shell-script -*-
# SPDX-License-Identifier: BSD-3-Clause
# TODO: MAKE THIS A REAL THING
complete -F _known_hosts awl