0
0
mirror of https://github.com/ihabunek/toot.git synced 2025-06-30 22:18:36 -04:00

Merge de7688d2844d8be4567dcbf314abfe65a1914a55 into 936c09062132f6be3dae9b4ba818b6f72930aecd

This commit is contained in:
Sandro Santilli 2025-03-28 01:04:34 +01:00 committed by GitHub
commit b21b92558d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,3 +46,21 @@ bundle:
--output toot-`git describe`.pyz bundle \
--compress
echo "Bundle created: toot-`git describe`.pyz"
# TODO: add more rules for more shells
.PHONY: install-shell-completion
install-shell-completion: install-bash-completion
@echo "See docs/shell_completion.md for Fish and Zsh completions"
.PHONY: install-bash-completion
install-bash-completion:
if test -d /etc/bash_completion.d; then \
$(MAKE) bash-completion && \
cp bash-completion /etc/bash_completion.d/toot; \
fi
# TODO: encode dependencies instead (on bundle?)
.PHONY: bash-completion
bash-completion:
_TOOT_COMPLETE=bash_source toot > $@.tmp && mv -f $@.tmp $@