Skip to content

Commit

Permalink
add some stuff to try using 1password-cli
Browse files Browse the repository at this point in the history
Not sure how far this will go. But it's something?
  • Loading branch information
ymendel committed Jun 13, 2022
1 parent a7f1cb0 commit 772b6e4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions security/aliases.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alias pbpass=get_op_password_to_paste
4 changes: 4 additions & 0 deletions security/completion.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
if (which op > /dev/null)
then
source <(op completion bash)
fi
3 changes: 3 additions & 0 deletions security/functions.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
get_op_password_to_paste () {
op item get "$1" --fields label=password | pbcopy
}

0 comments on commit 772b6e4

Please sign in to comment.