diff options
author | Hendrik Jäger <hendrik@securosys.ch> | 2018-03-06 15:00:37 +0100 |
---|---|---|
committer | Hendrik Jäger <hendrik@securosys.ch> | 2018-03-06 15:02:57 +0100 |
commit | 692f0974713ec8d0c4dfdbd288a5fd308d692a94 (patch) | |
tree | c7fd484a04b5fd019f85d39cfc35b3877255fdb1 /.zsh_pass | |
parent | 16a02594b071a14f11d157f30faa72801e32349e (diff) |
Add 'pass' functionssecurosys
Diffstat (limited to '.zsh_pass')
-rw-r--r-- | .zsh_pass | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -1,7 +1,14 @@ +PERSONAL_PASSWORD_STORE_DIR=$HOME/LocalData/henksfiles/password-store compdef _pass mypass - -zstyle ':completion::complete:mypass::' prefix "$HOME/Data/henksfiles/password-store" +zstyle ':completion::complete:mypass::' prefix "$HOME/LocalData/henksfiles/password-store" mypass() { - PASSWORD_STORE_DIR=$HOME/Data/henksfiles/password-store pass $@ + PASSWORD_STORE_DIR=$HOME/LocalData/henksfiles/password-store pass $@ +} + +OLD_PASSWORD_STORE_DIR="$HOME/LocalData/securosys/secure/old_phrases" +compdef _pass oldpass +zstyle ':completion::complete:oldpass::' prefix "$OLD_PASSWORD_STORE_DIR" +oldpass() { + PASSWORD_STORE_DIR=$OLD_PASSWORD_STORE_DIR pass $@ } |