13 lines
257 B
Bash
Executable File
13 lines
257 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Author: Landon Dyck
|
|
# Will prompt for your bitwarden vault password and retain the open session in your environment
|
|
# Idempotent
|
|
|
|
# Usage: $ . ./unlock.sh
|
|
|
|
if [[ -z "${BW_SESSION}" ]]; then
|
|
export BW_SESSION=$(bw unlock --raw)
|
|
fi
|
|
|
|
bw sync |