mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-24 23:00:09 +00:00
pass: add README (#8282)
This commit is contained in:
parent
45d2236941
commit
efee47b5c0
1 changed files with 22 additions and 0 deletions
22
plugins/pass/README.md
Normal file
22
plugins/pass/README.md
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
# pass
|
||||||
|
|
||||||
|
This plugin provides completion for the [pass](https://www.passwordstore.org/) password manager.
|
||||||
|
|
||||||
|
To use it, add `pass` to the plugins array in your zshrc file.
|
||||||
|
|
||||||
|
```
|
||||||
|
plugins=(... pass)
|
||||||
|
```
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
### Multiple repositories
|
||||||
|
|
||||||
|
If you use multiple repositories, you can configure completion like this:
|
||||||
|
```zsh
|
||||||
|
compdef _pass workpass
|
||||||
|
zstyle ':completion::complete:workpass::' prefix "$HOME/work/pass"
|
||||||
|
workpass() {
|
||||||
|
PASSWORD_STORE_DIR=$HOME/work/pass pass $@
|
||||||
|
}
|
||||||
|
```
|
Loading…
Reference in a new issue