diff --git a/README.md b/README.md index 0a8d307..9194de0 100644 --- a/README.md +++ b/README.md @@ -122,7 +122,7 @@ shell (*~/.bashrc*, *~/.zshrc*, etc) with the config file path, for example alias dotdrop=' --cfg=' ``` -For bash and zsh completion scripts see [the related doc](completion/README.md). +Completion scripts exist for `bash`, `zsh` and `fish`, see [the related doc](completion/README.md). # Getting started diff --git a/completion/README.md b/completion/README.md index c89bf1c..5ba805e 100644 --- a/completion/README.md +++ b/completion/README.md @@ -1,8 +1,8 @@ -Here are the completion files for `bash` and `zsh` +Here are the completion files for `bash`, `zsh` and `fish`. for the use of dotdrop either through the bash script `dotdrop.sh` or through the python script `dotdrop` (pypi, snap, setup.py, etc). -Those files are generated using +`bash` and `zsh` scripts are generated using [infi.docopt_completion](https://github.com/Infinidat/infi.docopt_completion). # bash @@ -18,3 +18,16 @@ Copy the file in a path within `${fpath}` * if using `dotdrop.sh`: [_dotdrop.sh-completion.zsh](_dotdrop.sh-completion.zsh) * if using `dotdrop`: [_dotdrop-completion.zsh](_dotdrop-completion.zsh) + +# fish + +Install for your user: +```bash +mkdir -p ~/.config/fish/completions +cp dotdrop.fish ~/.config/fish/completions/ +``` + +Install system-wide: +```bash +cp dotdrop.fish /usr/share/fish/completions/ +```