diff --git a/.rc b/.rc index 068e4b7..bf28725 100644 --- a/.rc +++ b/.rc @@ -14,7 +14,7 @@ shopt -s histappend pa() { case $1 in g) - cd "${PA_DIR:=${XDG_DATA_HOME:=$HOME/.local/share}/pa}" + cd "${PA_DIR:=${XDG_DATA_HOME:=$HOME/.local/share}/pa/passwords}" git pull git add --all git commit -m '*' diff --git a/bin/pa-bemenu b/bin/pa-bemenu deleted file mode 100755 index cbeff42..0000000 --- a/bin/pa-bemenu +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -# -# prompt for a password via bemenu -# then type the selected password -# -# deps: -# - wtype -# - bemenu -# - pa - -cd "${PA_DIR:-$HOME/.local/share/pa}" -password_files="$(find * -type f | grep -v '/.git')" -password=$(printf '%s\n' "$password_files" | sed 's/.age//' | bemenu -c -W 0.2 -l 20 "$@") - -pa show "$password" | head -n 1 | tr -d '\n' | wtype - diff --git a/bin/pa-bemenu b/bin/pa-bemenu new file mode 120000 index 0000000..a2fb174 --- /dev/null +++ b/bin/pa-bemenu @@ -0,0 +1 @@ +/home/j3s/code/pa/contrib/pa-bemenu \ No newline at end of file