Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Commit

Permalink
automagically push password-store repo on changes
Browse files Browse the repository at this point in the history
  • Loading branch information
torrottum committed Sep 25, 2016
1 parent 9a621f2 commit 4a7c3e6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@ zplug load
alias irc="mosh tor@torrottum.no -- tmux attach -t irc"
alias ls="ls -G"


# auto push password-store
function pass {
args_to_intercept=(insert edit generate rm mv cp)
if [[ " ${args_to_intercept[@]} " =~ " ${1} " ]]; then
command pass "$@"
command pass git push
else
command pass "$@"
fi
}

setopt autocd
setopt interactivecomments
bindkey -e

0 comments on commit 4a7c3e6

Please sign in to comment.