From 16a02594b071a14f11d157f30faa72801e32349e Mon Sep 17 00:00:00 2001 From: Hendrik Jäger Date: Fri, 6 Oct 2017 15:33:50 +0200 Subject: Add personal password store --- .zsh_pass | 7 +++++++ .zshrc | 1 + 2 files changed, 8 insertions(+) create mode 100644 .zsh_pass diff --git a/.zsh_pass b/.zsh_pass new file mode 100644 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 b0bfd27..f7e8f2d 100644 --- 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 -- cgit v1.2.3