From e656dd2fcbf0d4db99cd7e440fa3e3959c3d21ff Mon Sep 17 00:00:00 2001 From: Martin Larsson Date: Sat, 1 Jun 2024 01:34:03 +0200 Subject: [PATCH] Add an alias for easy getting password from bitwarden cli --- home/.zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/home/.zshrc b/home/.zshrc index 57900a6..dd48707 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -98,6 +98,11 @@ pwdf() { echo "$(pwd)"/"$(fzf)" } + +bwp() { + bw get password "$1" | wlc +} + # wl-copy and wl-paste doesn't exist on mac, and mac has pbcopy and pbpaste if [[ "$(uname)" != "Darwin" ]]; then alias wlc="wl-copy"