From 62e09984bf054e96cedb7eefaf0f59b35b270c07 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 12 Jan 2024 17:46:04 +0300 Subject: added support for Zsh autocompletions * actually autocompletions are much more powerful than on Bash --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 89fd84d..af5e6f8 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ based on the database of [openrussian.org](https://en.openrussian.org/). pages ~~very easy~~ possible. * Puts very low requirements on the runtime environment: a black and white terminal display is sufficient. -* Bash auto completions supported. +* Auto completions supported for Bash and Zsh. Most of this is handled by the script's `-C` argument, so it is trivial to add support for other shells. Contributions are welcome! @@ -125,6 +125,13 @@ something like the following to your `~/.bash_completion`: alias ru='openrussian -Lde -Len' ру='openrussian -Lde -Len' complete -F _complete_alias ru ру +### Zsh Aliases + +Autocompletion will automatically work with aliases in the Zsh, so it is +sufficient to add the following to your `~/.zshrc`: + + alias ru='openrussian -Lde -Len' ру='openrussian -Lde -Len' + ## Examples A simple lookup: -- cgit v1.2.3