diff options
| author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-01-12 17:46:04 +0300 |
|---|---|---|
| committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-01-12 17:46:04 +0300 |
| commit | 62e09984bf054e96cedb7eefaf0f59b35b270c07 (patch) | |
| tree | da322fab9ad72d4e02c4c8d95bd2b9e9d8e9afe6 /README.md | |
| parent | 0fbed9a95255c9a6ade511bf3c12286f4450fa90 (diff) | |
| download | openrussian-cli-62e09984bf054e96cedb7eefaf0f59b35b270c07.tar.gz | |
added support for Zsh autocompletions
* actually autocompletions are much more powerful than on Bash
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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: |
