commit 1378e5c75239855fc3e786b5856f5c0c828f8841 (patch)
parent cfc6d9d26812443c40cea048d2caddff02d95578
Author: Alex Karle <alex@alexkarle.com>
Date: Wed, 24 Feb 2021 19:21:53 -0500
passwords: Replace pash with pass
Patch replaces pash [1] with pass [2] for a couple of reasons:
1) Builtin git support is nice
2) iOS clients exist
3) Bigger community => safety in numbers?
4) It's packaged on all of the systems I use -> easy to install
(1) means we can get rid of psync, which was starting to show issues
as soon as I had category/password{1,2,3,.bak} all stored :) git is
much more elegant as a synchronization method, and while I *could*
roll my own git synchronization, it doesn't hurt to use the one the
community is already behind.
Diffstat:
5 files changed, 2 insertions(+), 36 deletions(-)
diff --git a/.config/mutt/accounts/karleco.muttrc b/.config/mutt/accounts/karleco.muttrc
@@ -12,5 +12,5 @@ set record="=Sent"
set postponed="=Drafts"
# Uncomment if sendmail not configured on machine
-# set smtp_pass=`pash show mail/karleco`
+# set smtp_pass=`pass show mail/karleco`
# set smtp_url="smtps://$from:$smtp_pass@smtp.fastmail.com:465"
diff --git a/.gitmodules b/.gitmodules
@@ -19,6 +19,3 @@
[submodule ".vim/pack/plugins/start/vim-gitgutter"]
path = .vim/pack/plugins/start/vim-gitgutter
url = https://github.com/airblade/vim-gitgutter
-[submodule "deps/pash"]
- path = etc/deps/pash
- url = https://github.com/dylanaraps/pash
diff --git a/bin/psync b/bin/psync
@@ -1,30 +0,0 @@
-#!/bin/sh
-# Synchronize pash passwords with a central host
-PHOST=${PSYNC_HOST:="raspberrypi"}
-PUSER=${PSYNC_USER:="pi"}
-
-die() {
- echo "$1" 1>&2
- exit 1
-}
-
-push() {
- rsync -av $HOME/.local/share/pash/ $PUSER@$PHOST:.local/share/pash/
-}
-
-pull() {
- rsync -av $PUSER@$PHOST:.local/share/pash/ $HOME/.local/share/pash/
-}
-
-sync() {
- # Assume current passwords are latest (push then pull)
- push
- pull
-}
-
-case "$1" in
- push) push ;;
- pull) pull ;;
- sync) sync ;;
- *) die "usage: psync push|pull|sync"
-esac
diff --git a/etc/deps/pash b/etc/deps/pash
@@ -1 +0,0 @@
-Subproject commit 2fb2092447b1577b47fbf9bc682e7fcb7e98efce
diff --git a/etc/mbsyncrc b/etc/mbsyncrc
@@ -3,7 +3,7 @@ IMAPAccount karleco
User alex@karle.co
Host imap.fastmail.com
SSLType IMAPS
-PassCmd "+pash show mail/karleco"
+PassCmd "+pass show mail/karleco"
IMAPStore karleco-fastmail
Account karleco