1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 12:46:44 +00:00

add fish completion to doc

This commit is contained in:
deadc0de6
2020-06-19 20:13:46 +02:00
parent 42fce0794f
commit 7a70dae78c
2 changed files with 16 additions and 3 deletions

View File

@@ -122,7 +122,7 @@ shell (*~/.bashrc*, *~/.zshrc*, etc) with the config file path, for example
alias dotdrop='<absolute-path-to-dotdrop.sh> --cfg=<path-to-your-config.yaml>'
```
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

View File

@@ -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/
```