]> git.netwichtig.de Git - user/henk/vcsh/zsh.git/commitdiff
Add personal password store
authorHendrik Jäger <hendrik@securosys.ch>
Fri, 6 Oct 2017 13:33:50 +0000 (15:33 +0200)
committerHendrik Jäger <hendrik@securosys.ch>
Tue, 6 Mar 2018 14:02:57 +0000 (15:02 +0100)
.zsh_pass [new file with mode: 0644]
.zshrc

diff --git a/.zsh_pass b/.zsh_pass
new file mode 100644 (file)
index 0000000..5825daf
--- /dev/null
+++ b/.zsh_pass
@@ -0,0 +1,7 @@
+compdef _pass mypass
+
+zstyle ':completion::complete:mypass::' prefix "$HOME/Data/henksfiles/password-store"
+mypass() {
+  PASSWORD_STORE_DIR=$HOME/Data/henksfiles/password-store pass $@
+}
+
diff --git a/.zshrc b/.zshrc
index b0bfd27fdf726154f1d6c12544e28138044eb577..f7e8f2d258373dc0d487acf12b6c4f3e155f13c7 100644 (file)
--- a/.zshrc
+++ b/.zshrc
@@ -11,6 +11,7 @@ autoload -U edit-command-line
 . ~/.zsh_aliases
 . ~/.zsh_local
 . ~/.zsh_qemu
+. ~/.zsh_pass
 
 zle -N zle-line-init
 zle -N zle-keymap-select