From cd5779eed3097d273f09bd8e7d47a8dcc141f371 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 27 Sep 2022 18:09:45 +0000 Subject: [PATCH 1/2] feat(completions): add bash "completions" --- GNUmakefile | 1 + Makefile | 1 + completions/bash.bash | 5 +++++ 3 files changed, 7 insertions(+) create mode 100644 completions/bash.bash diff --git a/GNUmakefile b/GNUmakefile index 5e7fab3..c8979d3 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -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 diff --git a/Makefile b/Makefile index d8d8c68..71d8e91 100644 --- a/Makefile +++ b/Makefile @@ -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/bash.bash $(DESTDIR)/$(PREFIX)/$(SHARE)/bash-completion/completions/$(PROG) install -Dm644 completions/zsh.zsh $(DESTDIR)/$(PREFIX)/$(SHARE)/zsh/site-functions/_$(PROG) \ No newline at end of file diff --git a/completions/bash.bash b/completions/bash.bash new file mode 100644 index 0000000..c16eca3 --- /dev/null +++ b/completions/bash.bash @@ -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 -- 2.43.0 From 7b9f361c76655c01bda4e6dfe7abccad9820a106 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 27 Sep 2022 18:12:26 +0000 Subject: [PATCH 2/2] [SKIP CI] pain --- GNUmakefile | 2 +- Makefile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index c8979d3..377457c 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -19,6 +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/bash.bash $(DESTDIR)/$(PREFIX)/$(SHARE)/bash-completion/completions/$(PROG) install -Dm644 completions/zsh.zsh $(DESTDIR)/$(PREFIX)/$(SHARE)/zsh/site-functions/_$(PROG) endif diff --git a/Makefile b/Makefile index 71d8e91..33c5f9e 100644 --- a/Makefile +++ b/Makefile @@ -11,5 +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/bash.bash $(DESTDIR)/$(PREFIX)/$(SHARE)/bash-completion/completions/$(PROG) - install -Dm644 completions/zsh.zsh $(DESTDIR)/$(PREFIX)/$(SHARE)/zsh/site-functions/_$(PROG) \ No newline at end of file + install -Dm644 completions/bash.bash $(DESTDIR)/$(PREFIX)/$(SHARE)/bash-completion/completions/$(PROG) + install -Dm644 completions/zsh.zsh $(DESTDIR)/$(PREFIX)/$(SHARE)/zsh/site-functions/_$(PROG) -- 2.43.0