From 83c7de899f9a386a289b4e54a0e5751cb9b64cbe Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Thu, 12 Dec 2024 18:46:42 +0100 Subject: [PATCH] doc: install: Add shell completion set-up (#166) --- docs/install.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/install.md b/docs/install.md index 51dbff88..a6691dec 100644 --- a/docs/install.md +++ b/docs/install.md @@ -143,6 +143,27 @@ pip uninstall silkaj --user silkaj ``` +## Shell completion + +Set up the shell completion by adding following line in your shell configuration depending on your shell: + +=== "Bash" + ```title="$HOME/.bashrc" + eval "$(_SILKAJ_COMPLETE=bash_source silkaj)" + ``` + +=== "Zsh" + ```title="$HOME/.zshrc" + eval "$(_SILKAJ_COMPLETE=zsh_source silkaj)" + ``` + +=== "Fish" + ```title="$HOME/.config/fish/completions/silkaj.fish" + _SILKAJ_COMPLETE=fish_source silkaj | source + ``` + +For further details checkout [Click documentation](https://click.palletsprojects.com/en/8.1.x/shell-completion/). + ## Install to contribute Check out the [installation guide with Poetry](/contributing/install_poetry/). -- GitLab