dotfiles/.local/bin/bw
Osaigbovo Omere 43007d310e
update...
2026-10-06 10:54:24 +01:00

10 lines
261 B
Bash

#!/usr/bin/env bash
SESSION=$(secret-tool lookup service bitwarden 2>/dev/null)
if [[ -z "$SESSION" ]]; then
SESSION=$(bw unlock --raw)
secret-tool store --label="bw-session" service bitwarden <<< "$SESSION"
fi
exec /usr/bin/bw "$@" --session "$SESSION"