mirror of
https://github.com/angt/secret
synced 2024-11-16 19:48:05 +01:00
Update README.md about tab completion
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
parent
b299d44da7
commit
4c826db630
1 changed files with 20 additions and 5 deletions
25
README.md
25
README.md
|
@ -33,13 +33,28 @@ Then, run as `root`:
|
||||||
|
|
||||||
As usual, you can customize the destination with `DESTDIR` and `prefix`.
|
As usual, you can customize the destination with `DESTDIR` and `prefix`.
|
||||||
|
|
||||||
If you want the tab completion in `bash`, you have to do it manually for now.
|
### Tab completion
|
||||||
Luckily, it's super easy! Just download the file [argz.bash](argz/comp/argz.bash) and then:
|
|
||||||
|
|
||||||
$ . argz.bash
|
Tab completion works with `bash` and `yash` (`zsh` is also supported if you enable `bashcompinit`).
|
||||||
$ complete -F _argz secret
|
Unfortunately, it doesn't work out of the box, you have to setup it manually.
|
||||||
|
Luckily, it's super easy!
|
||||||
|
|
||||||
It's exactly the same for `zsh` if you have enabled `bashcompinit'.
|
Download the file corresponding to your shell:
|
||||||
|
- [argz.bash](https://github.com/angt/argz/blob/dev/comp/argz.bash).
|
||||||
|
- [argz.yash](https://github.com/angt/argz/blob/dev/comp/argz.yash).
|
||||||
|
|
||||||
|
Then you can add these lines in your `.bashrc` (or `.zshrc`):
|
||||||
|
|
||||||
|
. argz.bash
|
||||||
|
complete -F _argz secret
|
||||||
|
|
||||||
|
Or in your `.yashrc`:
|
||||||
|
|
||||||
|
. argz.yash
|
||||||
|
|
||||||
|
function completion/secret {
|
||||||
|
command -f completion//reexecute argz
|
||||||
|
}
|
||||||
|
|
||||||
Completion for secrets is only available in a trusted shell. See below.
|
Completion for secrets is only available in a trusted shell. See below.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue