Skip to content

Commit

Permalink
add fish completion to doc
Browse files Browse the repository at this point in the history
  • Loading branch information
deadc0de6 committed Jun 19, 2020
1 parent 42fce07 commit 7a70dae
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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

Expand Down
17 changes: 15 additions & 2 deletions 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
Expand All @@ -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/
```

0 comments on commit 7a70dae

Please sign in to comment.